装SVN装得我头大,终于整好了。安装过程记下来,以后用……
前提:已经安装好apache(否则需安装apr和apr-util)
1. 安装neno
在安装之前,需要确认libxml2,如果没有安装需要安装
[root@yx-testing-ssl-05.vm.baidu.com safety_test_platform]#rpm -q libxml2
libxml2-2.6.16-6
[root@yx-testing-ssl-05.vm.baidu.com safety_test_platform]#rpm -q libxml2-devel
libxml2-devel-2.6.16-6
下载neon-0.25.5.tar.gz安装包http://www.webdav.org/neon/neon-0.25.5.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]# tar zxvfneon-0.25.5.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]# cd neon-0.25.5
[root@yx-testing-ssl-05.vm.baidu.comneon-0.25.5]# ./configure –prefix=/home/work/svn/deps/neon --with-ssl=openssl
[root@yx-testing-ssl-05.vm.baidu.com neon-0.25.5]#make
[root@yx-testing-ssl-05.vm.baidu.com neon-0.25.5]#makeinstall
2. 安装Berkeley DB
下载db-4.4.20.tar.gz 安装包http://download.oracle.com/berkeley-db/db-4.4.20.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]#tar zxvf db-4.4.20.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]#cd db-4.4[root@yx-testing-ssl-05.vm.baidu.comsoft]tar zxvf.20
[root@yx-testing-ssl-05.vm.baidu.com db-4.4.20] #cdbuild_unix/
[root@yx-testing-ssl-05.vm.baidu.combuild_unix]# ../dist/configure --prefix=/home/work/svn/deps/berkeleydb –enable-cxx
其中-enable-cxx就是编译C++库,这样才能编译Berkeley DB数据库的PHP扩展php_db4
[root@yx-testing-ssl-05.vm.baidu.com build_unix]#make
[root@yx-testing-ssl-05.vm.baidu.com build_unix]#makeinstall
[root@yx-testing-ssl-05.vm.baidu.com build_unix]#echo '/home/work/svn/deps/berkeleydb/lib/'>>/etc/ld.so.conf
[root@yx-testing-ssl-05.vm.baidu.com build_unix]#ldconfig
通知系统Berkeley DB的动态链接库在/home/work/svn/deps/berkeleydb /lib目录下
3. 安装subversion
下载svn安装包:http://subversion.tigris.org/downloads/subversion-1.6.17.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]#tar zxvf subversion-1.6.17.tar.gz
下载svn依赖包:http://subversion.tigris.org/downloads/subversion-deps-1.6.17.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]#tar zxvf subversion-deps-1.6.17.tar.gz
[root@yx-testing-ssl-05.vm.baidu.com soft]#cdsubversion-1.6.17
[root@yx-testing-ssl-05.vm.baidu.comsubversion-1.6.17]# ./configure --prefix=/home/work/subversion --with-apxs=/home/work/local/httpd/bin/apxs--with-apr=/home/work/local/httpd/bin/apr-1-config--with-apr-util=/home/work/local/httpd/bin/apu-1-config --with-neon=/home/work/svn/deps/neno--with-ssl --with-zlib=/home/work/soft/subversion-1.6.17/zlib --enable-maintainer-mode--without-berkeley-db
[root@yx-testing-ssl-05.vm.baidu.comsubversion-1.6.17]#make
[root@yx-testing-ssl-05.vm.baidu.comsubversion-1.6.17]#make install
#将svn的bin加入到PATH中
vim /etc/profile
添加此句保存退出:exportPATH=/home/work/subversion/bin:$PATH
source /etc/profile