<?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>the sonorous swell &#187; Ubuntu</title>
	<atom:link href="http://notsoevil.net/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://notsoevil.net</link>
	<description>I may not have gone where I intended to go, but I think I have ended up where I needed to be.</description>
	<lastBuildDate>Wed, 18 Aug 2010 19:55:05 +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>Compiling packages in Ubuntu</title>
		<link>http://notsoevil.net/2008/05/compiling-packages-in-ubuntu/</link>
		<comments>http://notsoevil.net/2008/05/compiling-packages-in-ubuntu/#comments</comments>
		<pubDate>Mon, 12 May 2008 03:46:13 +0000</pubDate>
		<dc:creator>jdcantrell</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://john.notsoevil.net/?p=8</guid>
		<description><![CDATA[Brad was asking me the other night to try and compile wormux (yes we both loved Worms Armageddon) because he was having some issues with it. Now I guess I&#8217;ve been using Ubuntu for a while but I have yet to actually do any development on it, and it has mostly been just to keep [...]]]></description>
			<content:encoded><![CDATA[<p>Brad was asking me the other night to try and compile wormux (yes we both loved Worms Armageddon) because he was having some issues with it. Now I guess I&#8217;ve been using Ubuntu for a while but I have yet to actually do any development on it, and it has mostly been just to keep my server up and running. In Gentoo, if you installed a package you&#8217;re pretty much promised to have all the development files needed to compile the package again later. Ubuntu doesn&#8217;t even come with a compiler intially! No problem though, all the things you could need for compiling c/c++ programs can be easily installed with:</p>
<pre>sudo apt-get install build-essentials</pre>
<p>That little command will get you set up with autoconf, make, gcc a couple of libraries and a few other things you&#8217;ll be needing. However it&#8217;s not enough to actually compile wormux. We need more libraries, specifically wormux lists, libsdl (and several other libs that extend sdl), libxml and libcurl. Hrm, cool enough, Ubuntu has libsdl-dev, libxml-dev, and libcurl4-openssl-dev (somehow I figured out that was the package I needed as wormux lists libcurl3-dev). You can go about installing each dev package as you need ie:</p>
<pre>sudo apt-get install libsdl1.2-dev libcurl4-openssl-dev</pre>
<p>But there is a much easier way. If the package you want to compile has a source package you can do this:</p>
<pre>sudo apt-get build-dep wormux</pre>
<p>And boom, there you go. Use ./configure followed by make and you should have a fresh binary to run through your cpu. Though once I was finished with this I ran into some issues and a couple questions. For example look at the output from initally running the above build-dep command:</p>
<pre>The following NEW packages will be installed:
cdbs comerr-dev debhelper fdupes html2text intltool intltool-debian
libcurl4-gnutls-dev libfreetype6-dev libgcrypt11-dev libgl1-mesa-dev
libglib2.0-dev libglibmm-2.4-dev libglu1-mesa-dev libglu1-xorg-dev
libgnutls-dev libgnutlsxx13 libgpg-error-dev libidn11-dev libjpeg62-dev
libkadm55 libkrb5-dev libldap2-dev liblzo2-dev libogg-dev libopencdk10-dev
libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libsdl-gfx1.2-dev
libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
libsdl1.2-dev libsigc++-2.0-dev libsmpeg-dev libsmpeg0 libtasn1-3-dev
libtiff4-dev libtiffxx0c2 libvorbis-dev libx11-dev libxau-dev
libxcb-xlib0-dev libxcb1-dev libxdmcp-dev libxml++2.6-dev libxml2-dev
mesa-common-dev patchutils po-debconf x11proto-core-dev x11proto-input-dev
x11proto-kb-dev xtrans-dev zlib1g-dev
0 upgraded, 57 newly installed, 0 to remove and 0 not upgraded.
Need to get 4231kB/15.3MB of archives.
After this operation, 56.5MB of additional disk space will be used.
Do you want to continue [Y/n]?</pre>
<p>A lot of these development libraries are completely unneeded for compiling wormux and while initially conveinent using build-deps does not give you an easy method for removal. There is no &#8220;apt-get remove build-dep package-name.&#8221; Which most of the time that&#8217;s not a problem, when people decide to compile software they usually have plans to work on it for a while. However, in my case (just installing the deps to help a buddy out with some compile issues) it would be nice to have a way to remove these packages.</p>
<p>So to end this tale, the best way to install development packages if you&#8217;re feeling lazy is to use apt-get to install (and later remove) the dev packages individually (as done in the first example). You would then use apt-get build-dep for when you&#8217;re actually doing more serious work (presumably managing packages/releases for Ubuntu/Debian). The ideal solution is to install each package manually, cluttering your system the least amount and giving you full control. But as I&#8217;ve been told while looking into this, there&#8217;s no reason to sweat the small stuff, so I&#8217;ll probably stick with installing dev packages individually and removing them when I get in the mood for cleaning my system later.</p>
]]></content:encoded>
			<wfw:commentRss>http://notsoevil.net/2008/05/compiling-packages-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
