標籤:linux apache apr configure
apache2.4 安裝出現如下錯誤
```[[email protected] httpd-2.4.10]$ ./configure checking for chosen layout... Apachechecking for working mkdir -p... yeschecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuconfigure: configure: Configuring Apache Portable Runtime library...configure: checking for APR... noconfigure: error: APR not found. Please read the documentation.```
應該是缺少依賴包這是ubuntu上的做法 http://stackoverflow.com/questions/13967114/configure-error-apr-not-found-please-read-the-documentation我這裡是centos啊。
這個回答比較靠譜,還是要去閱讀官方的安裝文檔http://stackoverflow.com/questions/9436860/apache-httpd-setup-and-installation
就是需要安裝arp相關的包,這可能是apache2.4 才會有的問題。
download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/)
具體做法:直接使用yum安裝(可能有版本問題)# yum install apr apr-util apr-devel
結果還是不行 apr的版本小於1.4了。老老實實手動安裝 root使用者。
wget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gztar -xvzf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make && make install
wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gztar -zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make && make install
安裝之後還缺少pcre包yum install pcre pcre-devel
這些都安裝好以後,然後繼續安裝apahce 就行了
本文出自 “orangleliu筆記本” 部落格,轉載請務必保留此出處http://blog.csdn.net/orangleliu/article/details/41392853
作者orangleliu
[apache2.4]configure: error: APR not found. Please read the documentation.