天天看點

源碼安裝svn 1.8.9

2014年5月25日 12:26:14

需要檔案: svn apr apr-util sqlite3 serf

注意,如果以前的系統中安裝有rpm的 apr,apr-util 要将它們解除安裝掉,否則在執行 svn up 時會出現錯誤提示

解決方法時,解除安裝掉用rpm安裝的apr,apr-util

還有:

sqlite3 不用安裝,隻用解壓後,複制到svn解壓後的源碼包中

serf 是讓svn識别http協定的 預設安裝的prefix是/usr/local/serf

-------------------

有找了個機器安裝,這次是先将原有的apr/apr-util 解除安裝掉再照上邊的步驟安裝時出的錯:

如果make svn的時候提示錯誤: make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1

就試試在configure時,将 --with-apr=... --with-apr-util=... 的值指向源碼包裡

如果出現這個錯誤提示: 

可能的原因是,在配置svn的./configure時,指定的apr/apr-util的配置檔案路徑不對,切記一個是apr/bin/apr-1-config,一個是 apr/bin/apu-1-config

如果svn up時出現錯誤提示: 

原因是: serf 1.2.1 版本沒有libserf-1.so.1, 但在 serf 1.3.5有(不清楚1.3.*是否都有)

可能,安裝了serf後可能開會出現上邊提示,這時可以在/usr/lib64 裡建立一個軟連接配接

Linux安裝軟體真蛋疼,在兩個虛拟機上安裝,就因為安裝軟體的順序不一樣,出的錯還不一樣,導緻安裝的指令也不一樣

參考: 

<a href="http://www.linuxidc.com/Linux/2014-05/101232.htm" target="_blank">http://www.linuxidc.com/Linux/2014-05/101232.htm</a>

<a href="http://blog.csdn.net/cww0403/article/details/20063223" target="_blank">http://blog.csdn.net/cww0403/article/details/20063223</a>

<a href="http://www.darrenfang.com/svn-apr-atomic-xchgptr-error.html" target="_blank">http://www.darrenfang.com/svn-apr-atomic-xchgptr-error.html</a>

<a href="http://www.th7.cn/system/lin/201403/51431.shtml" target="_blank">http://www.th7.cn/system/lin/201403/51431.shtml</a>