解決安裝Apache中出現checking for APR... no configure: error: APR not found. Please read the documentation的問題
阿新 • • 發佈:2018-04-23
cef ... clas apr-util 完成 usr 安裝apache make pre
Linux中安裝Apache 編譯出現問題:
解決辦法:
1、下載所需要的軟件包
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2、為了下面編譯不報錯,最好先裝上編譯環境和工具
yum -y install gcc+ gcc-c++
3、解決APR not found報錯
tar-zxf apr-1.4.5.tar.gz cd apr-1.4.5 ./configure --prefix=/usr/local/apr make && make install
4、解決APR-util not found問題
tar -zxf apr-util-1.3.12.tar.gz cd apr-util-1.3.12 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config make && make install
5、解決pcre問題
unzip -o pcre-8.10.zip cd pcre-8.10 ./configure --prefix=/usr/local/pcre make && make install
6、最後編譯加上
--with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
7、完成。
解決安裝Apache中出現checking for APR... no configure: error: APR not found. Please read the documentation的問題