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
2. install apr-util
3. install sqlite
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'
5. install subversion
After above 4 steps we can do a verification to verify whether SVN client is installed successful.
After that add the svn path into user's environment path. (Edit .bash_profile)
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.gz
cd apr-1.3.7
./configure -prefix=/usr/local/apr
make
make install
cat /etc/ld.so.conf
echo /usr/local/apr/lib >> /etc/ld.so.conf
2. install apr-util
tar zxvf apr-util-1.3.8.tar.gz
cd apr-util-.1.3.8
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
make
make install
echo /usr/local/apr-util/lib >> /etc/ld.so.conf
ldconfig -v
3. install sqlite
tar zxvf sqlite-amalgamation-3.6.16.tar.gz
cd sqlite-3.6.16/
./configure --prefix=/usr/local/sqlite
make
make 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.gz
cd neon-0.28.4
./configure --prefix=/usr/local/neon --enable-shared --with-ssl
make
make install
5. install subversion
tar -jxvf subversion-1.6.3.tar.bz2
cd 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/neon
make
make 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)