解决安装Centos Linux 中Apache出现checking for APR... no configure: error: APR not found. Please read the...

最新包:

解决办法:

1、下载所需要的软件包

wget http://archive.apache.org/dist/apr/apr-1.7.0.tar.gz

wget http://archive.apache.org/dist/apr/apr-util-1.6.1.tar.gz

wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.44/pcre-8.44.zip 

2、为了下面编译不报错,最好先装上编译环境和工具

yum -y install gcc+ gcc-c++

3、解决APR not found报错

tar -zxf apr-1.7.0.tar.gz

cd  apr-1.7.0

./configure --prefix=/usr/local/apr

make && make install

4、解决APR-util not found问题

tar -zxf apr-util-1.6.1.tar.gz

cd apr-util-1.6.1

./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config

make && make install

5、解决pcre问题

unzip -o pcre-8.44.zip

cd pcre-8.44

./configure --prefix=/usr/local/pcre  --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

make && make install

完工。

你可能感兴趣的:(解决安装Centos Linux 中Apache出现checking for APR... no configure: error: APR not found. Please read the...)