一.相关软件和下载地址
svn下载: http://ftp.meisei-u.ac.jp/mirror/apache/dist/subversion/
apr、apr-uti、apr-iconv下载: http://apache.fayea.com//apr/
openssl 下载: ftp://ftp.openssl.org/source/
scons 下载: http://scons.org/pages/download.html 或者 https://sourceforge.net/projects/scons/files/scons
serf 下载:http://serf.apache.org/download
sqlite 下载:http://www.sqlite.org/download.html
二.安装
1.安装apr
tar -zxvf apr-1.5.2.tar.gz
./configure --prefix=/usr/local/apr
make &&make install
2.安装apr-util
tar -zxvf apr-util-1.5.4.tar.gz
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make &&make install
3.安装sqlite-autoconf
tar zxf sqlite-autoconf-3130000.tar.gz
./configure --prefix=/usr/local/sqlite
make && make install
4.安装openssl
./config --prefix=/usr/local/openssl-1.0.2h/ -fPIC enable-share
make && make install
5.安装scons
rpm -ivh scons-2.5.0-1.noarch.rpm
6.安装serf,支持http https 协议访问SVN
tar -jxvf serf-1.3.8.tar.bz2
scons APR=/usr/local/apr APU=/usr/local/apr-util OPENSSL=/usr/local/openssl-1.0.2h/ PREFIX=/usr/local/serf
scons install
7.安装svn
tar -zxvf subversion-1.9.4.tar.gz
./configure --prefix=/usr/local/svn/ --with-zlib --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util --with-serf=/usr/local/serf --without-berkeley-db --with-sqlite=/usr/local/sqlite/
make && make install
三、配置
1.vim /etc/ld.so.conf
2./usr/local/serf/lib
3.ldconfig -v
4.ln -s /usr/local/svn/bin/svn /usr/bin/svn