Thursday, January 6, 2011

How to install subversion (svn) on linux ?

Guys,

I have referred the second procedure to install svn on my rhel6 mc.

Procedure 1 :
=========
cd /usr/local/src/

wget http://subversion.tigris.org/downloads/subversion-1.4.5.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.4.5.tar.gz
wget http://www.sqlite.org/sqlite-3.5.2.tar.gz

tar xzf subversion-1.4.5.tar.gz
tar xzf subversion-deps-1.4.5.tar.gz
tar xzf sqlite-3.5.2.tar.gz

cd sqlite-3.5.2
./configure
make
make install

cd ../subversion-1.4.5
./configure
make
make install
================


Note : If above one doesn't work please refer the following steps :


Procedure 2 :


================
wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.gz
tar -xzvf subversion-1.4.6.tar.gz
tar -xzvf subversion-deps-1.4.6.tar.gz
cd subversion-1.4.6

cd apr
./configure --enable-shared --prefix=$HOME
make && make install

cd ../apr-util
./configure --enable-shared --prefix=$HOME \
--with-expat=builtin --with-apr=$HOME \
--without-berkeley-db
make && make install

cd ../neon
./configure --enable-shared --prefix=$HOME \
--with-libs=$HOME
make && make install

./configure --prefix=$HOME --without-berkeley-db \
--with-editor=/usr/bin/vim --with-apr=$HOME \
--with-apr-util=$HOME --with-neon=$HOME \
--without-apxs --without-apache
make && make install

check :

which svn
svn --version
================

Try :)

1 comment: