posts - 33, comments - 46, trackbacks - 0, articles - 2

Linux下面编译subversion 1.8.X

Posted on 2013-09-11 20:35 在路上... 阅读(1772) 评论(0)  编辑  收藏 所属分类: 分享
1、下载
wget http://mirror.bit.edu.cn/apache/subversion/subversion-1.8.3.tar.gz
2、下载依赖包
./get-deps.sh

3.install apr
./configur
make
make install
4.install apr-util
./configure --with-apr=/usr/local/apr
make
make install
5.update sqlite
sqlite-amalgamation下载安装最新版本sqlite,解压
4.yum install glibc gcc expat expat-devel openssl openssl-devel
下载有关依赖包
5.compile svn
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-zlib \
--with-openssl --enable-maintainer-mode --with-serf=/usr/local/serf --enable-mod-activation

可能错误现象:
/tools/svn/bin/svn: symbol lookup error: /tools/svn/lib/libsvn_subr-1.so.0: undefined symbol: apr_atomic_xchgptr

错误解决
新配置的服务器,在运行svn命令时,全部出错显示上面的错误信息。
在网上搜索发现,原来这个错误是由于系统已经安装了apr的库文件,而在编译Svn时已经指定了httpd的apr库。
在执svn命令时,优先从系统自带的apr库载入,而引起不必要的错误。

只需要执行以下命令,将apr和apr-util都卸载即可

rpm -e --allmatches apr-util --nodeps
rpm -e --allmatches apr --nodeps



只有注册用户登录后才能发表评论。


网站导航: