close

在安裝 SuSE Linux 時得將 "軟體安裝" 中 "開發" 選項下的 C/C++ 開發環境打勾, 免得之後還得再去抓 gcc, make, autoconfig....等工具. 之後到 http://subversion.tigris.org/ 下載 subversion-1.6.11.tar.gz , 在 shell mode 下執行 "tar xzvf subversion-1.6.11.tar.gz" 解開 tarball, 進入 subversion-1.6.11 資料夾, 執行 ./configure 結果發生 "configure: WARNING: APR not found" 的錯誤, 之後 google 後發現此為缺少 apache 元件的關係, 系統中雖然有 apache server 了, 但是 svn 所需要的 apxs library 卻找不到, 因此參考了下面文章後,

http://aldington.javaeye.com/blog/289140

在 subversion 網站下載了subversion-deps-1.6.11.tar.gz , 解壓縮到和 subversion-1.6.11 相同的資料夾後, 執行指令

./configure

卻發生 "configure: error: We require OpenSSL; try --with-openssl",

之後繼續 google, 看到這篇文章

http://shineforever.blog.51cto.com/1429204/306116

 

決定一勞永逸, 到網路上下載 httpd-2.2.15.tar.gzopenssl-1.0.0.tar.gz, 首先解開 openssl 後, 到解開的資料夾內執行

./config

make

make install

再解開 httpd-2.2.15.tar.gz

根據文章中的描述, 執行

./configure --enable-dav --enable-so --prefix=/opt/apache2

make

make install

之後回到 subversion 資料夾, 執行

./configure --with-apxs=/opt/apache2/bin/apxs --with-apr=/opt/apache2 --with-apr-util=/opt/apache2 --with-openssl=/usr/local/ssl

(最後會看到一些什麼 unrecognized option --with-openssl 之類的警告, 又說什麼 we have configred without BDB file system support...blabla 之類的, 不要理他, 反正 makefile 生出來了, 如果不加 --with-openssl 參數則會發生之前那個需要安裝 openssl 的錯誤訊息, 相權之下還是選擇加這個參數了, 雖然教學文件上都沒提到)

make

make install

subversion 就安裝完成了.

之後將原本的 svnroot 資料夾移植過來, 試著執行一些基本 svn command, 發現都很順利, 只是 svn commit 仍需在 .bash_profile 中設定 SVN_EDITOR="/usr/bin/vim", 才能順利執行, 所以證明了 svn 資料的備份就是這麼簡單....

花了我一下午的時間....呼!

PS. svn 狀況排除可看 SVN FAQ

arrow
arrow
    全站熱搜

    colin3703 發表在 痞客邦 留言(0) 人氣()