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

编译apache报APR not found

时间:2014-05-10 04:20:35      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:apache   apr   apr-util   

[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache


编译apache, 遇到以下错误

configure: error: APR not found.  Please read the documentation.


configure: error: APR-util not found.  Please read the documentation.



http://archive.apache.org/dist/apr/去下载相关包

[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz

[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz



安装 apr 包

[vagrant@rs-1 apr-1.5.1]$ ./configure --prefix=/usr/local/apr

[vagrant@rs-1 apr-1.5.1]$ make

[vagrant@rs-1 apr-1.5.1]$ sudo make install



安装apr-util

[vagrant@rs-1 apr-util-1.5.3]$ ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config 


[vagrant@rs-1 apr-util-1.5.3]$ make 


[vagrant@rs-1 apr-util-1.5.3]$ sudo make install


最后,编译apache时候加上
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/

[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/



编译apache报APR not found,布布扣,bubuko.com

编译apache报APR not found

标签:apache   apr   apr-util   

原文地址:http://blog.csdn.net/angel22xu/article/details/25432053

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