Posted on 2013-09-11 20:35
在路上... 閱讀(1795)
評論(0) 編輯 收藏 所屬分類:
分享
1、下載
wget
http://mirror.bit.edu.cn/apache/subversion/subversion-1.8.3.tar.gz2、下載依賴包
./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