已亲自安装2次以上,如有问题请留言交流,谢谢
所需软件包 svn_install.tar.gz 百度云盘下载地址: http://pan.baidu.com/s/1bneTDpX
yum install gcc gcc-c++ -y
tar zxvf svn_install.tar.gz -C /home/soft/
#其中svn_install.tar.gz 包含以下软件包:
#apr-1.4.6.tar.gz
#zxvf apr-util-1.4.1.tar.gz
#pcre-8.12.tar.gz
#httpd-2.4.2.tar.gz
#sqlite-amalgamation-3071300.zip
#neon-0.29.6.tar.gz
#subversion-1.7.5.tar.gz
#svn需要SQLite支持,下载sqlite-amalgamation-3071300.zip 下载链接#http://www.sqlite.org/download.html
#svn需要neon,用于svn 命令行支持http或者https协议访问svn 下载链接#http://www.webdav.org/neon/
###################################################
#安装过程:
yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs -y
yum -y install lrzsz zlib zlib-devel libxml2 libxml2-devel expat
cd /home/soft/svn_install/
tar zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
#编辑configure 注释掉 $RM “$cfgfile”
sed -i ‘s/^.*$RM “$cfgfile”$/# $RM “$cfgfile”/’ configure
./buildconf
yum install autoconf -y
yum install libtool -y
./configure –prefix=/usr/local/apr
make && make install
cd ..
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure –prefix=/usr/local/apr –with-apr=/usr/local/apr
make && make install
cd ..
tar zxvf pcre-8.12.tar.gz
cd pcre-8.12
./configure
make && make install
cd ..
tar zxvf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure –prefix=/usr/local/apache –with-apr=/usr/local/apr/bin/apr-1-config –with-apr-util=/usr/local/apr/bin/apu-1-config \
–enable-so –enable-dav –enable-dav-fs –enable-dav-lock –enable-maintainer-mode –enable-rewrite
make && make install
cd ..
tar zxvf neon-0.29.6.tar.gz
cd neon-0.29.6
./configure
make && make install
cd ..
unzip sqlite-amalgamation-3071300.zip
tar zxvf subversion-1.7.5.tar.gz
cp sqlite-amalgamation-3071300/sqlite3.c /home/soft/svn_install/subversion-1.7.5/sqlite-amalgamation/
cd subversion-1.7.5
./configure –prefix=/usr/local/subversion –with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apr/bin/apr-1-config \
–with-apr-util=/usr/local/apr/bin/apu-1-config –with-ssl –with-zlib –enable-maintainer-mode –with-neon=/usr/local
make && make install
转载于:https://blog.51cto.com/yeadong/1403659