Install subversion into RHEL4 from source code

系统是RHEL4,没有找到相对应的rpm,花了大半天的时间从源代码来安装subversion,遇到了一些问题,特j简单总结一下安装过程,让大家少走点弯路

安装过程参考了http://stackoverflow.com/questions/274656/building-subversion-1-5-4-on-debian-could-not-find-library-containing-rsa-new

1,安装最新版本的libxml2,下载源码,解压

./configure && make clean && make && make install

2.安装最新版本的openssl,我们需要subversion 支持ssl, 下载源码,解压

./config --prefix=/root/installs && make clean && make && make install

3.下载subversion源代码,subversion-1.6.16.tar.gzsubversion-deps-1.6.16.tar.gz,解压

进入subversion-1.6.16目录中的neno目录,安装neno如下

./configure --with-ssl=openssl --prefix=/root/installs --with-libs=/root/installs:/usr/local/libxml2 --with-libxml

make clean && make && make install

安装完neno后,删除neno目录

4.安装subversion

./configure --with-ssl --prefix=/root/installs --with-neon=/root/installs/bin/neon-config --with-openssl=/root/installs

make clean && make && make install 

5.ok安装完毕,检测版本

/root/installs/bin/svn --version 将会显示版本信息为1.6.16

猜你喜欢

转载自cncomkyle.iteye.com/blog/1044610