q4561231 发表于 2018-11-21 09:18:19

Apache 安装过程中 Cannot use an external APR with the bundled APR-util 错误

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

cd httpd-2.2.3
安装APR  cd srclib/apr
  #./configure --prefix=/路径/apr
  #make
  #make install
  安装APR-util
  cd srclib/apr-util
  #./configure --prefix=/路径/apr-util --with-apr=/路径/apr
  #make

#make install
  然后再configure apache
  # ./configure --prefix=/路径/apache
  --enable-so --enable-mods-shared=all
  --enable-cgi
  --with-apr=/路径/apr
  --with-apr-util=/路径/apr-util/bin
  # make
  #make install
  注意的是 在参数上一定要指定路径 --with-apr=/路径/apr --with-apr-util=/路径/apr-util

页: [1]
查看完整版本: Apache 安装过程中 Cannot use an external APR with the bundled APR-util 错误