當前位置:首頁 » 編程軟體 » 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有問題

熱點內容
編譯703n固件 發布:2025-09-18 08:50:59 瀏覽:537
三星手機系統文件夾是哪個文件夾 發布:2025-09-18 08:48:45 瀏覽:280
rmijava 發布:2025-09-18 08:38:26 瀏覽:18
sql軟體和伺服器怎麼連接 發布:2025-09-18 08:27:47 瀏覽:937
手機java模擬器 發布:2025-09-18 07:13:29 瀏覽:418
linux線程的棧大小 發布:2025-09-18 07:09:42 瀏覽:635
廢舊電腦做linux伺服器 發布:2025-09-18 07:06:50 瀏覽:265
終端配置怎麼寫 發布:2025-09-18 06:44:42 瀏覽:804
ftp手機登陸 發布:2025-09-18 06:43:04 瀏覽:767
emc存儲800電話 發布:2025-09-18 06:32:49 瀏覽:964