<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Donald Jackson &#187; Compile</title>
	<atom:link href="http://www.ddj.co.za/archives/tag/compile/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ddj.co.za</link>
	<description>Kannel, mobile and web development</description>
	<lastBuildDate>Mon, 05 Jul 2010 09:18:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HOWTO: Compile Kannel on Ubuntu / Kubuntu 8.04</title>
		<link>http://www.ddj.co.za/archives/46/howto-compile-kannel-on-ubuntukubuntu-804</link>
		<comments>http://www.ddj.co.za/archives/46/howto-compile-kannel-on-ubuntukubuntu-804#comments</comments>
		<pubDate>Mon, 03 Nov 2008 13:33:05 +0000</pubDate>
		<dc:creator>Donald Jackson</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Kannel]]></category>

		<guid isPermaLink="false">http://www.ddj.co.za/archives/46</guid>
		<description><![CDATA[Hey everyone, I am putting together a multi-part post on how to compile Kannel as well as connect it to an SMPP Server and send a few messages through it. I will be using Kubuntu 8.04 for the tutorial but it should apply to most Linux distro&#8217;s. Step 1 &#8211; Satisfying requirements / dependencies Install [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone, I am putting together a multi-part post on how to compile Kannel as well as connect it to an SMPP Server and send a few messages through it. I will be using Kubuntu 8.04 for the tutorial but it should apply to most Linux distro&#8217;s.</p>
<p><b>Step 1 &#8211; Satisfying requirements / dependencies</b></p>
<p>Install CVS client:</p>
<p>sudo apt-get install cvs</p>
<p><u>Build dependencies:</u></p>
<p>Install build tools (gcc, mac, g++, etc. Not all necessary but you should have them!)
<ul>
<li>sudo apt-get install build-essential</li>
</ul>
<p>Install required Kannel dependencies (there are obviously way more, but this is all required on Kubuntu 8.04)
<ul>
<li>sudo apt-get install libxml2-dev</li>
</ul>
<p>Install optional Kannel dependencies (These are only required if you would like to use SSL enabled servers, alternate DLR storage options etc. For the purposes of this example I will enable our Kannel build for SSL and PostgreSQL DLR storage)
<ul>
<li>sudo apt-get install openssl-dev</li>
<li>sudo apt-get install libpq-dev</li>
</ul>
<p><b>Step 2 &#8211; Getting the source of Kannel.</p>
<p>Option a) Downloading latest stable</p>
<p></b>Visit the <a href="http://www.kannel.org/download.shtml">kannel download page</a> and download the source as gzip tarball (or bzip2 tarball if you prefer). In the directory you downloaded execute:</p>
<p>tar zxvf gateway-X.X.X.tar.gz</p>
<p><b>Option b) Getting the latest CVS (my preferred method)</b></p>
<p>You will need a CVS client installed.</p>
<p>Log in using the following command (just press Enter when it asks for<br />a password):<tt><br /></tt>
<ul>
<li><tt>cvs -d:pserver:anonymous@cvs.kannel.org:/home/cvs login</tt></li>
</ul>
<p>Check out the current version of the Kannel gateway:</p>
<p>
<ul>
<li><tt>cvs -d:pserver:anonymous@cvs.kannel.org:/home/cvs co -d gateway-cvs gateway</tt></li>
</ul>
<p>Once the gateway is checked out, it will be in the gateway-cvs directory (as specified above)</p>
<p><b>Step 3 &#8211; Building Kannel</b></p>
<p>Change directory to the directory you downloaded the source to (gateway-X.X.X or gateway-cvs)</p>
<p>Execute:
<ul>
<li>./configure &#8211;with-pgsql &#8211;enable-ssl</li>
</ul>
<p>This should configure the build correctly with OpenSSL and PostgreSQL support.</p>
<p>Once that&#8217;s done, execute:</p>
<ul>
<li>make</li>
</ul>
<p>This will build the binaries for Kannel, if you want to install them system wide at this point you can by executing:
<ul>
<li>sudo make install&nbsp;</li>
</ul>
<p>You now have the Kannel binaries built for your use. These include smsbox, wapbox and bearerbox. You can either consult the Kannel user guide for how to use these or wait for my next post where I will cover setting and starting up Kannel (and some architecture stuff <img src='http://www.ddj.co.za/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<p></p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/Kannel" rel="tag">Kannel</a>, <a class="performancingtags" href="http://technorati.com/tag/SMPP" rel="tag">SMPP</a>, <a class="performancingtags" href="http://technorati.com/tag/Build" rel="tag">Build</a>, <a class="performancingtags" href="http://technorati.com/tag/Ubuntu" rel="tag">Ubuntu</a>, <a class="performancingtags" href="http://technorati.com/tag/Kubuntu" rel="tag">Kubuntu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ddj.co.za/archives/46/howto-compile-kannel-on-ubuntukubuntu-804/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
