首页 > 代码库 > configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
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/.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。