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

來源:互聯網
上載者:User

標籤:

轉自:

http://www.cnblogs.com/Anker/p/3355573.html

 

今天從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

 

下面是正常安裝步驟?:

http://tonyguo.blog.51cto.com/379574/168534/

轉 Centos下安裝apahce的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.