日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > centos >内容正文

centos

Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法

發(fā)布時(shí)間:2025/3/21 centos 71 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

  今天從Apache官網(wǎng)上http://httpd.apache.org/下載httpd web服務(wù)器,由于我的虛擬機(jī)上之前安裝過,我先yum remove httpd進(jìn)行卸載,然后重新安裝。我采用的是源碼安裝,先進(jìn)行./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后出現(xiàn)

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

轉(zhuǎn)載于:https://www.cnblogs.com/Anker/p/3355573.html

總結(jié)

以上是生活随笔為你收集整理的Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。