Centos下安裝apahce的configure: error: APR not found. Please read the documentation解決辦法


  今天從Apache官網上http://httpd.apache.org/下載httpd web服務器,由於我的虛擬機上之前安裝過,我先yum remove httpd進行卸載,然后重新安裝。我采用的是源碼安裝,先進行./configure --prefix=/usr/local/apahce  --enable-so ,提示以下錯誤:

configure: error: APR not found. Please read the documentation.

解決辦法

wget http://apache.freelamp.com/apr/apr-1.4.2.tar.gz  下載apr

./configure –prefix=/usr/local/apr

make

make  install

wget http://apache.freelamp.com/apr/apr-util-1.3.10.tar.gz

./configure –prefix=/usr/local/web/apr-util –with-apr=/usr/local/apr

make

make install

3  ../configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出現

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

#./configure –help | grep pcre

--with-pcre=PATH        Use external PCRE library

下載:http://sourceforge.net/projects/pcre
下載地址二:http://ftp.exim.llorien.org/pcre/

#unzip -o pcre-8.10.zip

#cd pcre-8.10

#./configure --prefix=/usr/local/pcre

#make

#make install

最后安裝apahce:

  ./configure --prefix=/usr/local/apache --enable-rewrite --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre

make

make install

 

參考:

http://www.itokit.com/2012/0430/73710.html

http://www.linuxqq.net/archives/229.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM