码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-06-25 15:30:11      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:ble   har   nbsp   rewrite   http   错误   down   网址   efi   

Apache在2.4版本以后,编译时:

# ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --with-pcre



  出现如下错误:

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

apr-util packages to ./srclib/.



  网上搜索的解决方法虽正确,网址却是打不开;于是,去apache官网找:

  进官网:www.apache.org --> download --> HTTP 模块下找个比较快的网址 (如:http://apache.fayea.com/) --> 找到apr --> 选择bz2或者gz的版本的apr和apr-util,复制链接,下载到/usr/local/src目录下面。下面是下载的参数,如果出现网址错误,请去官网按照上面的方法下载:

# cd /usr/local/src
# wget http://apache.fayea.com/apr/apr-1.5.2.tar.bz2 # wget http://apache.fayea.com/apr/apr-util-1.5.4.tar.bz2 # tar -jxvf apr-util-1.5.4.tar.bz2
# tar -jxvf apr-1.5.2.tar.bz2



   将解压的库文件夹移动到httpd子目录srclib里(去掉版本号):

# cp -rf apr-1.5.2 /usr/local/src/httpd-2.4.18/srclib/apr   //将版本号去掉,下同
# cp -rf apr-util-1.5.4 /usr/local/src/httpd-2.4.18/srclib/apr-util



  完成上面操作,在执行编译的时候,就不会报错了。

 

参考文章:http://www.lai18.com/content/4710715.html

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

标签:ble   har   nbsp   rewrite   http   错误   down   网址   efi   

原文地址:http://www.cnblogs.com/weifeng1463/p/7076819.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!