aprutil編譯報錯
應該是安裝的組件不對吧,以下是我安裝的安裝步驟:
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有問題