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

          Linux下面編譯subversion 1.8.X

          Posted on 2013-09-11 20:35 在路上... 閱讀(1804) 評論(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



          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 革吉县| 桃江县| 阳朔县| 乌兰县| 汝城县| 城固县| 同江市| 姚安县| 雷山县| 德格县| 托里县| 凌海市| 肇州县| 大庆市| 汾西县| 马公市| 花莲市| 万源市| 长汀县| 平山县| 中西区| 屏山县| 鹿邑县| 三江| 平武县| 北海市| 航空| 丰顺县| 基隆市| 偃师市| 张家川| 塔河县| 南充市| 叶城县| 洪洞县| 新郑市| 巧家县| 六枝特区| 思茅市| 瑞丽市| 澄城县|