centos7 已经安装apr-util 源码安装apache 还是提示 apr-util not found

arp 及apr-util安装成功
clipboard.png

apache 编译提示找不到apr-util
clipboard.png

在网上查了一些解决办法,说是配置环境变量,在etc/profile中增加

clipboard.png
但是,试了,依然不行

折腾一天了,烦请高人指导,在此谢过!

阅读 4.8k
3 个回答

安装apache的时候需要手动指定apr和apr-util的目录,即 ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

新手上路,请多包涵

我也遇到相同的问题; apr与apr-util 都安装成功,但是安装Apache还是出现
checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -g -O2 -pthread"
setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
setting LDFLAGS to " "
configure:
configure: Configuring Apache Portable Runtime Utility library...
configure:
checking for APR-util... no
configure: error: APR-util not found. Please read the documentation.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题