鍍金池/ 問答/Linux/ centos7 已經(jīng)安裝apr-util 源碼安裝apache 還是提示 a

centos7 已經(jīng)安裝apr-util 源碼安裝apache 還是提示 apr-util not found

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

apache 編譯提示找不到apr-util
clipboard.png

在網(wǎng)上查了一些解決辦法,說是配置環(huán)境變量,在etc/profile中增加

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

折騰一天了,煩請高人指導,在此謝過!

回答
編輯回答
囍槑

安裝apache的時候需要手動指定apr和apr-util的目錄,即 ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

2018年7月9日 05:20
編輯回答
敢試

我也遇到相同的問題; apr與apr-util 都安裝成功,但是安裝Apache還是出現(xiàn)
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.

2018年6月16日 18:15
編輯回答
短嘆

要手動指定apr和apr-utils的源碼目錄,我博客里是放一起后相對目錄的
過程你可以拿去參考https://zhangguanzhang.github...

2018年2月28日 19:19