读书人

How to install SVN client in CentOS

发布时间: 2012-08-25 10:06:20 作者: rapoo

How to install SVN client in CentOS 5.5 64bit.
The default SVN's versoin of CentOS 5.5 is 1.4.2 While trying to access SVN Server which version is higher than 1.5 (including 1.5). So we should update the SVN Client to version 1.5 or higher.

At first we should get the necessary files we need.:

- apr-1.3.7.tar.gz
- apr-util-1.3.8.tar.gz
- sqlite-amalgamation-3.6.16.tar.gz
- neon-0.28.4.tar.gz
- subversion-1.6.3.tar.bz2

After all need files are ready. We begin to install they step by step.:

1. install apr

tar zxvf apr-1.3.7.tar.gzcd apr-1.3.7./configure -prefix=/usr/local/aprmakemake installcat /etc/ld.so.confecho /usr/local/apr/lib >> /etc/ld.so.conf


2. install apr-util
tar zxvf apr-util-1.3.8.tar.gzcd apr-util-.1.3.8./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/makemake installecho /usr/local/apr-util/lib >> /etc/ld.so.confldconfig -v


3. install sqlite
tar zxvf sqlite-amalgamation-3.6.16.tar.gzcd sqlite-3.6.16/./configure --prefix=/usr/local/sqlitemakemake install


4. install neon
Actually you can ingore this setup if you do not need to support http. But if you need to support https, please remember to add '--with-ssl'

tar zxvf neon-0.28.4.tar.gzcd neon-0.28.4./configure --prefix=/usr/local/neon --enable-shared --with-sslmakemake install


5. install subversion
tar -jxvf subversion-1.6.3.tar.bz2cd subversion-1.6.3./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-neon=/usr/local/neonmakemake install


After above 4 steps we can do a verification to verify whether SVN client is installed successful.

/usr/local/svn/bin/svn --version


After that add the svn path into user's environment path. (Edit .bash_profile)




读书人网 >操作系统

热点推荐