當前位置:首頁 » 編程軟體 » aprutil編譯報錯

aprutil編譯報錯

發布時間: 2022-12-31 22:50:15

linux4.7升級apache2.2到2.4編譯出錯

應該是安裝的組件不對吧,以下是我安裝的安裝步驟:
tar zxvf apr-1.5.1.tar.gz
cd apr-1.5.1/
./configure--prefix=/root/server/lib/apr/apr-1.5.1
make
make install

tar zxvf apr-util-1.5.3.tar.gz
cd apr-util-1.5.3/
./configure--prefix=/root/server/lib/apr/apr-util-1.5.3--with-apr=/root/server/lib/apr/apr-1.5.1
make
make install

unzip pcre-8.35.zip
cd pcre-8.35/
./configure--prefix=/root/server/lib/pcre/pcre-8.35
make
make install

tar zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8/
./configure--prefix=/root/server/lib/zlib/zlib-1.2.8
make
make install

tar zxvf httpd-2.4.9.tar.gz
cp -rf apr-1.5.1 httpd-2.4.9/srclib/apr
cp -rf apr-util-1.5.3httpd-2.4.9/srclib/apr-util
cd httpd-2.4.9/
./configure--prefix=/root/server/httpd-2.4.9 --with-included-apr--with-apr=/root/server/lib/apr/apr-1.5.1--with-apr-util=/root/server/lib/apr/apr-util-1.5.3--with-pcre=/root/server/lib/pcre/pcre-8.35-with-z=/root/server/lib/zlib/zlib-1.2.8 --enable-so --enable-moles=all--enable-mods-shared=all --enable-deflate --enable-headers
make
make install

tar zxvftomcat-connectors-1.2.40-src.tar.gz
cd tomcat-connectors-1.2.40-src/
cd native/
./buildconf.sh
./configure--with-apxs=/root/server/httpd-2.4.9/bin/apxs
make
make install
我安裝的2.4.9沒有什麼問題,主要是安裝Apache的時候 configure的依賴關系要選擇正確。

② Linux 編譯 httpd 時老是報 apr-util not found 但我已經裝了

./configure --with-apr-util=/usr/local/apr-util/

③ linux apache編譯出錯誤

你的 apache源碼包可能不完整, APR not found ,APR是apache的底層支持庫,用於支持不同的操作系統的apache 檢測到你的CPU是 i686 ,操作系統是linux,所以你要找一個根這個兼容的apache的支持庫

④ Linux編譯安裝apache httpd2.4 make報錯

缺少pcre-8.41.tar.gz包,找一個pcre和你httpd對應得版本安裝
./configure --prefix=/usr/local/pcre
make && make install
安裝好了之後,加上參數--with-pcre=/usr/local/pcre 如下所示
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

⑤ red hat linux5 編譯安裝apache出錯了

./configure 後不要加參數也可以啊 默認的路徑是/usr/local/apache2 ,具體的 你可以通過./configure --help查看下,我覺得--enable-so有問題

熱點內容
java返回this 發布:2025-10-20 08:28:16 瀏覽:593
製作腳本網站 發布:2025-10-20 08:17:34 瀏覽:888
python中的init方法 發布:2025-10-20 08:17:33 瀏覽:581
圖案密碼什麼意思 發布:2025-10-20 08:16:56 瀏覽:765
怎麼清理微信視頻緩存 發布:2025-10-20 08:12:37 瀏覽:684
c語言編譯器怎麼看執行過程 發布:2025-10-20 08:00:32 瀏覽:1013
郵箱如何填寫發信伺服器 發布:2025-10-20 07:45:27 瀏覽:255
shell腳本入門案例 發布:2025-10-20 07:44:45 瀏覽:114
怎麼上傳照片瀏覽上傳 發布:2025-10-20 07:44:03 瀏覽:806
python股票數據獲取 發布:2025-10-20 07:39:44 瀏覽:713