1. 下载subversion安装包之后解压 进入subversion目录
wget "http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.gz"
tar xfvz subversion-1.6.12.tar.gz
tar xfvz subversion-deps-1.6.12.tar.gz
cd subversion-1.6.12
2. 编译
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf
最简单的方法就是找一下有没有opensslv.h这个文件
如果找不到,就执行
yum install openssl-devel
注:以svnserve方式运行,不加apache编译参数。以fsfs格式存储版本库,不编译berkeley-db
如果最后出现下面WARNING,我们直接忽略即可。因为不使用BDB存储。
You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL. We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end. You can find the latest version of
Berkeley DB here:
http://www.sleepycat.com/download/index.shtml
3.编译之后的安装
为避免出现以下错误
执行以下操作:
#vi /etc/ld.so.conf
添加下面一行
/usr/local/lib
2、保存后运行ldconfig。
#/sbin/ldconfig
3、再重新运行make install 问题得到解决。
#make install
注:ld.so.conf和ldconfig用于维护系统动态链接库
至此,安装完成,执行以下命令测试
为了方便下操作,下面将SVN的BIN添加到PATH
PATH=/usr/local/svn/bin:$PATH
保存后,使其立即生效
#source /etc/profile