网站首页
Java
站长
开源
框架
理论
JS
Linux
DB
服务器
NET
生活
软件
PHP
其他
您的位置:首页 > Linux > Apache安装问题:configure: error: APR not found . Please read the documentation
Apache安装问题:configure: error: APR not found . Please read the documentation
2014-7-9    9982    0

Linux上安装Apache时,编译出现错误:

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
make && make install

 

pcre问题

unzip -o pcre-8.10.zip
cd pcre-8.10
./configure --prefix=/usr/local/pcre
make && make install

 

最后编译Apache时加上:

--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

 

例如:

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

 

下载apr-1.4.5.tar.gz
下载apr-util-1.3.12.tar.gz

下载pcre-8.10.zip

上一篇: Win2003下Apache与Tomcat搭建集群环境
下一篇: DOM解析XML报错:Content is not allowed in prolog
发表评论:
您的网名:
个人主页:
编辑内容: