解决安装Apache中出现checking for APR... no configure: error: APR not found. Please read the documentation的
Posted 风起时只有我在
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决安装Apache中出现checking for APR... no configure: error: APR not found. Please read the documentation的相关的知识,希望对你有一定的参考价值。
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的的主要内容,如果未能解决你的问题,请参考以下文章
php安装redis扩展'checking for igbinary includes... configure: error: Cannot find igbinary.h'解决方法
wordpress更新出现Briefly unavailable for scheduled maintenance. Check back in a minute.
android导入外部db文件,出现Unparsed aapt error(s)! Check the console for output
WordPress升级出现Briefly unavailable for scheduled maintenance. Check back in a minute.