<?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>doodle dabbles &#187; subversion</title>
	<atom:link href="http://ashish.tonse.com/tag/subversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashish.tonse.com</link>
	<description>a little nerdery for everyone</description>
	<lastBuildDate>Thu, 17 Sep 2009 21:35:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Subversion on OS X</title>
		<link>http://ashish.tonse.com/2007/09/installing-subversion-on-os-x/</link>
		<comments>http://ashish.tonse.com/2007/09/installing-subversion-on-os-x/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 04:32:34 +0000</pubDate>
		<dc:creator>Ashish</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://ashish.tonse.com/2007/09/13/installing-subversion-on-os-x/</guid>
		<description><![CDATA[I would think that building and installing Subversion on OS X from source would be slightly more straightforward than it was. But it might start to confuse some of the less comfortable, so I thought I&#8217;d write up this step-by-step guide.
We&#8217;ll be creating a lot of compilation and linking across directories, so it&#8217;s good to [...]]]></description>
			<content:encoded><![CDATA[<p>I would think that building and installing Subversion on OS X from source would be slightly more straightforward than it was. But it might start to confuse some of the less comfortable, so I thought I&#8217;d write up this step-by-step guide.</p>
<p>We&#8217;ll be creating a lot of compilation and linking across directories, so it&#8217;s good to keep it all contained in one place. So let&#8217;s start by creating a directory in the user&#8217;s home that&#8217;s going to contain all this.</p>
<p><code>mkdir ~/svncompile<br />
cd ~/svncompile</code></p>
<p>Before you really get started, download the following files and extract them:</p>
<p>Subversion (all releases latest as of Sep 13, 2007)</p>
<p><code>curl -O http://subversion.tigris.org/downloads/subversion-1.4.5.tar.bz2<br />
tar jxf subversion-1.4.5.tar.bz2</code></p>
<p>Apache Portable Runtime (apr):</p>
<p><code>curl -O http://www.mirrorgeek.com/apache.org/apr/apr-0.9.16.tar.gz<br />
tar zxf apr-0.9.16.tar.gz</code></p>
<p>Apache Portable Runtime Utilities (apr-util):</p>
<p><code>curl -O http://www.mirrorgeek.com/apache.org/apr/apr-util-0.9.15.tar.gz<br />
tar zxf apr-util-0.9.15.tar.gz</code></p>
<p>If you do an ls, you should have the following directories extracted:</p>
<p><code>drwxr-xr-x   44 ashish  ashish     1496 Sep  3 21:43 apr-0.9.16<br />
drwxr-xr-x   34 ashish  ashish     1156 Sep  3 21:46 apr-util-0.9.15<br />
drwxr-xr-x   29 ashish  ashish      986 Aug 14 06:18 subversion-1.4.5</code></p>
<p>Next, we&#8217;re going to compile the dependency libraries, apr and apr-util. We configure, then make, and finally make install:</p>
<p><code>cd apr-0.9.16<br />
./configure<br />
make<br />
sudo make install<br />
cd ..</code></p>
<p>apr-util depends on apr, so when we configure apr-util, we need to point it to apr:</p>
<p><code>cd apr-util-0.9.15<br />
./configure --with-apr=../apr-0.9.16<br />
make<br />
sudo make install<br />
cd ..</code></p>
<p>Using &#8211;with-apr tells the utils to use that instance of apr located in the directory we just built.</p>
<p>Building SVN</p>
<p>And finally, we can build svn. <img src='http://ashish.tonse.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>First, we go to svn and run configure, but we point it to apr and apr-utils:</p>
<p><code>cd subversion-1.4.5<br />
./configure --with-apr=../apr-0.9.16 --with-apr-util=../apr-util-0.9.15</code></p>
<p>Subversion might tell you that you don&#8217;t have BerkeleyDB installed. I&#8217;ll have to modify this section for that.</p>
<p>Now build and install subversion:</p>
<p><code>make<br />
sudo make install</code></p>
<p>And that&#8217;s it! Assuming all went well, you should be able to type &#8220;svn&#8221; and get an svn usage message.</p>
<p>Cleanup</p>
<p>There are two cleanup options, depending on what you want to do. If you just want to get rid of all of the source, the easy thing to do is:</p>
<p><code>rm -rf ~/svncompile</code></p>
<p>And we&#8217;re done. If you want to hold on to the source, I always prefer keeping the source directory clean because that saves space if you&#8217;re not actively developing and also keeps your directories, well, clean.  For that, just run make clean on each of those projects:</p>
<p><code>cd apr-0.9.16<br />
make clean<br />
cd ../apr-util-0.9.15<br />
make clean<br />
cd ../subversion-1.4.5<br />
make clean</code></p>
<p>And you have a clean source repo. <img src='http://ashish.tonse.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>To put it all together, here are all the commands you need to fully install Subversion 1.4.5 on Mac OS X 10.4 (Tiger):</p>
<p><code>mkdir ~/svncompile<br />
cd ~/svncompile<br />
curl -O http://subversion.tigris.org/downloads/subversion-1.4.5.tar.bz2<br />
tar jxf subversion-1.4.5.tar.bz2<br />
curl -O http://www.mirrorgeek.com/apache.org/apr/apr-0.9.16.tar.gz<br />
tar zxf apr-0.9.16.tar.gz<br />
curl -O http://www.mirrorgeek.com/apache.org/apr/apr-util-0.9.15.tar.gz<br />
tar zxf apr-util-0.9.15.tar.gz<br />
cd apr-0.9.16<br />
./configure<br />
make<br />
sudo make install<br />
cd ..<br />
cd apr-util-0.9.15<br />
./configure --with-apr=../apr-0.9.16<br />
make<br />
sudo make install<br />
cd ..<br />
cd subversion-1.4.5<br />
./configure --with-apr=../apr-0.9.16 --with-apr-util=../apr-util-0.9.15<br />
make<br />
sudo make install</code></p>
<p>Hope this helps!! Leave me a comment if you have any problems following the guide.<br />
TODO: mod_dav_svn and BerkeleyDB support.</p>
]]></content:encoded>
			<wfw:commentRss>http://ashish.tonse.com/2007/09/installing-subversion-on-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
