分享

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

 bananarlily 2015-04-03

CentOS编译安装Apache 2.4.x时报错:configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.    

作者:SNSGOU 发布于:2013-08-30 14:18:23  分类:Apache/Nginx   浏览(3216) 

先前按照这篇文章“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/ 目录下, 再进行编译。

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

#重新执行 configure 命令:

其他的安装步骤,跟这篇文章“CentOS6.x编译安装LAMP(2):编译安装 Apache2.2.22”类似!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多