Subversion1.8 is difference far away from subversion1.7, here is the steps to install subversion1.8.
My os is ubuntu13.10, but whatever system is ok.
#step one
cd /var/share/software
wget http://120.198.238.130:83/mirror.bit.edu.cn/apache/subversion/subversion-1.8.8.tar.gz
tar zxvf subversion-1.8.8.tar.gz
cd subversion-1.8.8
cd apr
./configure --prefix=/var/share/software/apr
sudo make
sudo make install #step two
cd ../apr-util
./configure --prefix=/var/share/software/apr-util --with-apr=/var/share/software/apr
sudo make
sudo make install #step three
cd ../
wget http://superb-dca2.dl.sourceforge.net/project/scons/scons/2.3.1/scons-2.3.1.tar.gz
tar zxvf scons-2.3.1.tar.gz
cd scons-2.3.1
sudo python setup.py install cd ../
wget https://serf.googlecode.com/files/serf-1.3.3.zip
unzip serf-1.3.3.zip
cd serf-1.3.3
scons PREFIX=/var/share/software/serf APR=/var/share/software/apr APU=/var/share/software/apr-util OPENSSL=/usr/bin
scons install #step four
cd ../subversion-1.8.8
./configure --prefix=/var/share/software/subversion --with-apr=/var/share/software/apr --with-apr-util=/var/share/software/apr-util --with-openssl --with-serf=/var/share/software/serf
sudo make
sudo make install #step five
cd ../
sudo cp /var/share/setup/serf-1.3.3/libserf-1.so.1 /var/share/software/subversion/lib
NOTICE:
If you don't follow step three, when you run
svn checkout http://xxxx.com/xxxx
you will get these errors:
svn: E170000: Unrecognized URL scheme for http://xxxx.com
If you don't follow step five, when you run
svn up
you will get these errors:
svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory
Have fun with Ubuntu!