[apache2.4]configure: error: APR not found. Please read the documentation.

來源:互聯網
上載者:User

標籤: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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.