现在的位置: 首页 > 综合 > 正文

CentOS编译安装Apache 2.4.x时报错:configure: error: Bundled APR requested but not found at ./srclib/. Downlo

2019年06月06日 ⁄ 综合 ⁄ 共 614字 ⁄ 字号 评论关闭

先前按照这篇文章“CentOS6.x编译安装LAMP(2):编译安装 Apache2.2.22”去编译安装Apache2.2.x版本时,安装得挺顺利,今天换成Apache2.4.x版本,安装方法一样,在执行./configure命令时,却报如下错误:

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

它的意思是说:需要下载aprapr-utils并解压到 ./srclib/ 目录下, 再进行编译。

1 cd /usr/local/src  #源码包统一放到此目录
2 wget
-c http://apache.etoak.com/apr/apr-util-1.4.1.
tar.gz
3 wget
-c http://apache.etoak.com/apr/apr-1.4.6.
tar.gz
4  
5 tar -xzvf
./apr-1.4.6.
tar.gz
6 tar -xzvf
./apr-utli-1.4.1.
tar.gz
7 cp -rf
./apr-1.4.6  ./httpd-2.4.6/srclib/apr
8 cp -rf
./apr-util-1.4.6  ./httpd-2.4.6/srclib/apr-util

#重新执行 configure 命令:

抱歉!评论已关闭.