先前按照这篇文章“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/.
它的意思是说:需要下载apr和apr-utils并解压到 ./srclib/ 目录下, 再进行编译。
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 |
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 命令: