编译安Apache2.4报错checking for APR... no configure: error: APR not found. Please read the documentation.

Apache2.4编译报错checking for APR… no configure: error: APR not found. Please read the documentation.

这里写图片描述

解决方法

1、下载所需软件包,要安装新版本:

这里写图片描述
2、解决apr not found问题

 tar -zxf apr-1.4.5.tar.gz
 cd  apr-1.4.5
 ./configure --prefix=/usr/local/apr
 make && make install

3、解决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 

4、解决pcre问题

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

5、最后如果报了checking for pcre-config… false configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ 的错误,我们可以通过下面的命令来解决

yum -y install pcre-devel

最后我们就可以通过下面的参数来进行对Apache服务器来进行配置、编译、安装

./configure --prefix=/application/apache2.4.34 --with-apr-util=/usr/local/apr-util --with-apr=/usr/local/apr --with-pcre=/usr/local/pcre --enable-deflate --enable-expires --enable-headers --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite
make
make install
  • 5
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值