在 配置 ./configure --prefix=/usr/local/apache 出現(xiàn)以下錯(cuò)誤
10年的侯馬網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。成都全網(wǎng)營(yíng)銷的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整侯馬建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)建站從事“侯馬網(wǎng)站設(shè)計(jì)”,“侯馬網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
報(bào)錯(cuò)1:
checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in
安裝gcc :yum install -y gcc
報(bào)錯(cuò)2:
pcre報(bào)錯(cuò) checking for pcre-config... false
解決辦法: yum install pcre pcre-devel
報(bào)錯(cuò)3:
checking for APR... no configure: error: APR not found. Please read the documentation
下載apr:wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
tar -zxvf apr-1.6.3.tar.gz
cp -r apr-1.6.3 /usr/local/src/httpd-2.4.34/srclib/apr
cd apr-1.6.3
./configure --prefix=/usr/local/apr
make && make install
報(bào)錯(cuò)3.1:
checking for APR-util... no configure: error: APR-util not found. Please read the documentation
wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.gz
tar -zxvf apr-util-1.6.1.tar.gz
cp -r apr-util-1.6.1 /usr/local/src/httpd-2.4.34/srclib/apr-util
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
在編譯apr-util 可能也會(huì)報(bào)錯(cuò)xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
yum install expat-devel安裝該庫(kù),安裝完再次編譯
然后重新配置apache 并編譯安裝:
cd httpd-2.4.34
./configure --with-included-apr --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --nable-mods-shared=most
make
make install
補(bǔ)充:
make[1]: 離開(kāi)目錄“/usr/local/src/httpd-2.4.34/support”
make: *** [all-recursive] 錯(cuò)誤 1
解決辦法: make clean 然后重新./configure make