心有多大舞臺便有多大

          Embrace changes, pursue excellence, share niceness.

          安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決

          configure: error,APR with the bundled APR-utilq錯誤解決

          一般在第一次安裝進一般不會遇到這種問題,在重新編譯時會遇到該問題
          以下是我根據錯誤提示進行糾正安裝的


          cd httpd-2.2.2

          安裝APR
          cd srclib/apr

          #./configure --prefix=/usr/local/apr
          #make
          #make install

          安裝APR-util
          cd srclib/apr-util

          #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
          #make
          #make install

          再安裝apache
          # ./configure --prefix=/usr/local/apache
          --enable-so --enable-mods-shared=all
          --enable-cgi
          --with-apr=/usr/local/apr
          --with-apr-util=/usr/local/apr-util/bin

          # make
          #make install

          這樣安裝正常!

          posted on 2008-02-25 09:42 pony 閱讀(1564) 評論(6)  編輯  收藏 所屬分類: linux

          評論

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-02-25 10:12 pony

          apache的安裝最好是用一個腳本來安裝,否則很容易發生每次安裝完后的apache都不一樣,經常會漏掉其中的某些選項.
            回復  更多評論   

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-02-25 10:13 pony

          編譯mod_rewrite的問題

          一般都是用apxs -a -i -c mod_rewrite.c
          來編譯..但是這個會出問題...

          具體方法如下


          /usr/local/apache1.3.28/bin/apxs -I /usr/include/gdbm -c mod_rewrite.c
          會返回
          gcc -shared -o mod_rewrite.so mod_rewrite.lo

          然后手動輸入
          gcc -shared -o mod_rewrite.so mod_rewrite.o -lgdbm

          cp mod_rewrite.so到/apache1.3.28/libexec/


          在conf中加入

          LoadModule rewrite_module libexec/mod_rewrite.so  回復  更多評論   

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-02-25 10:36 pony

          今天重新編譯安裝了apache,主要是加入了--enable-usertrack模塊的功能.準備用這個來分析用戶的網站點擊行為.
          在httpd.conf中加入了相關的配置:
          CookieTracking on
          CustomLog logs/clickstream "%{cookie}n %r %t"
          CookieName clickstream  回復  更多評論   

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-04-08 20:12 pony

          今天在ubuntu上裝了apache2.2.8,安裝選現是:
          ./configure --enable-cache --enable-mem-cache --enable-deflate --enable-proxy --enable-proxy-html --enable-proxy-balancer --enable-rewrite --enable-so --enable-usertrack --enable-heads --enable-expires --enable-ssl --enable-dav --with-mpm=worker --prefix=/usr/local/apache-2.2.8 --with-z=/usr/local/zlib

          如果帶上--enable-deflate選項,那么需要現安裝zlib
          wget http://www.zlib.net/zlib-1.2.3.tar.gz
          ar -xvzf zlib-1.2.3.tar.gz
          cd zlib-1.2.3.tar.gz
          ./configure --prefix=/usr/local/zlib
          make
          make install

          zlib庫最好安裝到缺省目錄下,不要使用prefix,例如我在安裝subversion時,因為subversion不支持指定zlib庫的目錄位置,所以就沒法安裝了。
          編譯subversion:
          ./configure --prefix=/usr/local/subversion-1.4.6 --with-apxs=/usr/local/apache-2.2.8/bin/apxs --with-apr=/home/pony/download/dev/httpd-2.2.8/srclib/apr --with-apr-util=/home/pony/download/dev/httpd-2.2.8/srclib/apr-util/ --with-ssl --enable-dav
          不要使用--enale-dso選項,否則在apache訪問時可能會導致"Could not open the requested SVN filesystem"的錯誤  回復  更多評論   

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-04-14 16:56 pony

          郁悶!因為在編譯apache的時候寫成了--enable-ssl--enable-dav,少了個空格,結果后面在安裝subversion的時候mod_dav模塊死活加載不了.還以為是subversion1.4.6不支持apache2.2.8.把我整了好幾天了.
          一定要小心了!  回復  更多評論   

          # re: 安裝apache的錯誤問題解決: error,APR with the bundled APR-utilq錯誤解決 2008-04-24 23:48 pony

          apt-get install openssl libssl-dev
            回復  更多評論   

          主站蜘蛛池模板: 东乡族自治县| 康定县| 岢岚县| 西宁市| 万年县| 岳池县| 腾冲县| 马龙县| 岳阳市| 蕲春县| 北票市| 清涧县| 广州市| 池州市| 山西省| 达州市| 津南区| 田阳县| 黄山市| 静宁县| 平舆县| 玉龙| 尉氏县| 嘉义市| 锡林浩特市| 大方县| 平谷区| 松滋市| 胶南市| 浏阳市| 许昌市| 通江县| 鹤庆县| 韩城市| 遵化市| 紫阳县| 余庆县| 肥东县| 龙海市| 澳门| 廊坊市|