linux安装源码包出现apr错误,Linux源码安装Apchae时报错:error: APR not found.Please read the documentation....
配置的時候報錯:
checking for APR... no
configure: error: APR not found . Please read the documentation
解決方法:
安裝APR,下載所需軟件包,如果此時計算機可以上網,執行命令下載文件:
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
APR not found問題:
tar -zxf apr-1.4.5.tar.gz
cd apr-1.4.5
./configure --prefix=/usr/local/apr
make && make install
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 --with-apr-util=/usr/local/apr-util
make && make install
pcre問題:
unzip -o pcre-8.10.zip
cd pcre-8.10
./configure --prefix=/usr/local/pcre
make && make install
如果檢查配置的時候出現錯誤:
configure: error: no acceptable C compiler found in $PATH
安裝GCC軟件套件即可:yum install gcc
最后配置Apache:
./configure --prefix=/usr/local/httpd --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
參考:
總結
以上是生活随笔為你收集整理的linux安装源码包出现apr错误,Linux源码安装Apchae时报错:error: APR not found.Please read the documentation....的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 妙网相册拼版软件如何一键导入模板?妙网相
- 下一篇: Keychron 推出 Q6 Pro 双