2008年11月19日 星期三

Build Subversion 1.5.4 on Ubuntu Linux

Download Subversion-1.5.4 source code here.

Install dependencies first.
sudo apt-get build-deps subversion

Download libneon here,and unpack the source to the subversion-1.5.4 directory.
tar xvf neon-0.28.3.tar.gz
mv neon-0.28.3.tar.gz subversion-1.5.4/neon


because of dav_svn apache module is loaded in mods-enable/mods-avaliable directory
so we need to insert some dummy code to let the installation successful.

cd /etc/apache2
sudo -s
cat mods-available/dav_svn.load >> httpd.conf
vim httpd.conf


comment the "LoadModule dav_svn ... "

Then compile our subversion
cd subversion-1.5.4
./autogen.sh
./configure --prefix=/local/usr --enable-shared
make && sudo make install


remember to prepend /local/usr to your path env variable.

if you want to install lastest SVK , you need to build SWIG binding of svn.

download SWIG here. unpack it and make , make install
back to the subversion-1.5.4 directory , re-configure it , then

make swig-pl
make check-swig-pl
make swig-pl-lib
cd subversion/bindings/swig/perl/native
perl Makefile.PL EXTRAOPTIONSHERE
sudo make install