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
下載有關(guān)依賴包
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
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
下載有關(guān)依賴包
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
可能錯(cuò)誤現(xiàn)象:
/tools/svn/bin/svn: symbol lookup error: /tools/svn/lib/libsvn_subr-1.so.0: undefined symbol: apr_atomic_xchgptr
錯(cuò)誤解決
新配置的服務(wù)器,在運(yùn)行svn命令時(shí),全部出錯(cuò)顯示上面的錯(cuò)誤信息。
在網(wǎng)上搜索發(fā)現(xiàn),原來這個(gè)錯(cuò)誤是由于系統(tǒng)已經(jīng)安裝了apr的庫(kù)文件,而在編譯Svn時(shí)已經(jīng)指定了httpd的apr庫(kù)。
在執(zhí)svn命令時(shí),優(yōu)先從系統(tǒng)自帶的apr庫(kù)載入,而引起不必要的錯(cuò)誤。
只需要執(zhí)行以下命令,將apr和apr-util都卸載即可
rpm -e --allmatches apr-util --nodeps
rpm -e --allmatches apr --nodeps