Cannot use an external APR with the bundled APR-util

源码安装httpd-2.2.16 以后的版本会经常出现这个错误。

apache2.0.x与apache2.2.x在apr有很大区别,前者为依赖公用apr,后者依赖于自身的apr。一般前者也就是2.0.x的编译基本上没有apr方面的问题。如果是后者也出现关于apr的问题,则将安装前的apr去除后,在编译apache2.2.x自身的apr,在srclib目录中。

因此根据提示解决此问题:

1、安装APR:

[root@web1 httpd-2.2.29]# cd srclib/apr

[root@web1 apr]# ./configure --prefix=/usr/local/apr

[root@web1 apr]# make && make install

2、安装APR-util

[root@web1 httpd-2.2.29]# cd srclib/apr-util

[root@web1 httpd-2.2.29]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

[root@web1 httpd-2.2.29]# make && make install

3、安装apache,加入参数(--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util)

[root@web1 httpd-2.2.29]# ./configure --prefix=/usr/local/apache2  --enable-mods-shared=most  --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

诸位 ./configure 后,记得make make install

原创文章,转载请注明: 转载自笛声

本文链接地址: Cannot use an external APR with the bundled APR-util

暂无评论

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Copyright © 2015-2024 笛声博客 All Rights Reserved     浙ICP备15036123号-1