<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Compiling Subversion 1.4.3 from source on Ubuntu Dapper - Comments</title>
 <link>http://townx.org/blog/elliot/compiling-subversion-ubuntu-dapper</link>
 <description>Comments for &quot;Compiling Subversion 1.4.3 from source on Ubuntu Dapper&quot;</description>
 <language>en</language>
<item>
 <title>Cheers for that, I&#039;d never</title>
 <link>http://townx.org/blog/elliot/compiling-subversion-ubuntu-dapper#comment-14276</link>
 <description>&lt;p&gt;Cheers for that, I&#039;d never heard of it before.&lt;/p&gt;</description>
 <pubDate>Mon, 23 Jul 2007 04:01:44 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14276 at http://townx.org</guid>
</item>
<item>
 <title>prevu</title>
 <link>http://townx.org/blog/elliot/compiling-subversion-ubuntu-dapper#comment-14275</link>
 <description>&lt;p&gt;If you have to do this even occassionally then you really want to check out prevu which is the automated way of backporting ubuntu apps correctly:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.ubuntu.com/Prevu&quot; title=&quot;https://wiki.ubuntu.com/Prevu&quot;&gt;https://wiki.ubuntu.com/Prevu&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Sun, 22 Jul 2007 21:39:18 -0500</pubDate>
 <dc:creator>wongy</dc:creator>
 <guid isPermaLink="false">comment 14275 at http://townx.org</guid>
</item>
<item>
 <title>Compiling Subversion 1.4.3 from source on Ubuntu Dapper</title>
 <link>http://townx.org/blog/elliot/compiling-subversion-ubuntu-dapper</link>
 <description>&lt;p&gt;I bet you&#039;re wondering, why oh why would you want to compile Subversion? Can&#039;t you just install it with apt-get or Synaptic?&lt;/p&gt;

&lt;p&gt;The answer is: yes, you can install it with apt. But my problem: if you set up a project with the latest EasyEclipse, the Subversion client version in EasyEclipse is different from the Ubuntu Subversion client version. This means any projects you create with EasyEclipse and link to a Subversion repository are unusable with the command line &lt;tt&gt;svn&lt;/tt&gt; client in Ubuntu Dapper. You get this message if you try:&lt;/p&gt;



&lt;pre&gt;
$ svn stat
svn: This client is too old to work with working copy &#039;.&#039;; please get a newer Subversion client
&lt;/pre&gt;



&lt;p&gt;(By the way, I also get this error if I try to use &lt;tt&gt;script/plugin&lt;/tt&gt; for a Rails application inside a project created with EasyEclipse. Presumably because the Ruby Subversion client library isn&#039;t up to date as a consequence of the C client library being out of date. This makes it difficult to use the plugin script, so I&#039;ve been manually adding &lt;tt&gt;svn:externals&lt;/tt&gt; to my plugins directory.)&lt;/p&gt;

&lt;p&gt;First, download Subversion itself (I got the tarball) from &lt;a href=&quot;http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&amp;amp;expandFolder=74&quot;&gt;the Subversion site&lt;/a&gt;. I&#039;m using Subversion 1.4.3.&lt;/p&gt;

&lt;p&gt;Next, install all the pre-requisites for compiling. I cribbed this list from &lt;a href=&quot;http://packages.debian.org/stable/source/subversion:&quot; title=&quot;http://packages.debian.org/stable/source/subversion:&quot;&gt;http://packages.debian.org/stable/source/subversion:&lt;/a&gt;&lt;/p&gt;



&lt;pre&gt;
sudo apt-get install m4 debhelper libneon24-dev libapr0-dev libdb4.3-dev libtool \
libexpat1-dev zlib1g-dev bison patch autotools-dev autoconf swig libsasl2-dev \
perl libperl-dev libkrb5-dev
&lt;/pre&gt;



&lt;p&gt;Just for good measure (and because I don&#039;t really know what I&#039;m doing :) I installed all the dependencies listed at &lt;a href=&quot;http://packages.debian.org/stable/devel/subversion&quot; title=&quot;http://packages.debian.org/stable/devel/subversion&quot;&gt;http://packages.debian.org/stable/devel/subversion&lt;/a&gt;, plus all the -dev versions too:&lt;/p&gt;



&lt;pre&gt;
sudo apt-get install db4.3-util libapr0 libapr0-dev libc6 libc6-dev libdb4.3 \
libexpat1 libexpat1-dev libldap2 libldap2-dev libneon24 libneon24-dev \
libssl0.9.7 libxml2 libxml2-dev patch zlib1g zlib1g-dev
&lt;/pre&gt;



&lt;p&gt;Next, connect to the unpacked Subversion source directory and run these commands:&lt;/p&gt;



&lt;pre&gt;
./configure --prefix=&amp;lt;path_to_install_directory&amp;gt;/subversion-1.4.3 --disable-nls
make
make install
&lt;/pre&gt;



&lt;p&gt;Replacing &amp;lt;path_to_install_directory&amp;gt; with the path to the install directory. The &lt;tt&gt;--disable-nls&lt;/tt&gt; turns off gettext support (for internationalisation) which otherwise causes problems.&lt;/p&gt;

&lt;p&gt;Now try running:&lt;/p&gt;



&lt;pre&gt;
&amp;lt;path_to_install_directory&amp;gt;/subversion-1.4.3/bin/svn --version
svn, version 1.4.3 (r23084)
   compiled Mar 12 2007, 23:33:51
&lt;/pre&gt;



&lt;p&gt;It works for me. It could be there are other dependencies I&#039;ve missed or not listed, but you can get what the Debian developers think the dependencies are from the links in the text above.&lt;/p&gt;

&lt;p&gt;By the way, it took me about two hours of debugging wierd error messages to get this working, so there&#039;s a chance you might get the same, of course. Here are a few examples of what I ended up googling:&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;NE_FEATURE_SSL undeclared&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;caps&quot;&gt;PKCS12&lt;/span&gt;_unpack_authsafes@OPENSSL&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;I&#039;m pretty sure these were caused by problems with OpenSSL and Neon, but I&#039;m not 100% sure.&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/compiling-subversion-ubuntu-dapper#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <category domain="http://townx.org/howtos">howtos</category>
 <pubDate>Mon, 12 Mar 2007 18:22:45 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">614 at http://townx.org</guid>
</item>
</channel>
</rss>
