本以為Apache的編譯安裝很簡單,,其實(shí)不然,; 以前的環(huán)境下編譯報(bào)錯(cuò)很少 ,但這次不行了 提示configure: error: APR not found. Please read the documentation.
在apr.網(wǎng)站上可以下載此軟件(apr-1.4.5.tar.gz);編譯安裝完成后,;本以為就可以相安無事的進(jìn)行Apache的安裝 ,;沒想到 突然間報(bào)了個(gè) configure: error: APR-util not found. Please read the documentation 然后就下載apr-util-0.9.19.tar.bz2進(jìn)行編譯安裝 安裝完成后再次進(jìn)行Apache的編譯安裝 沒想到又報(bào)錯(cuò)了
安裝新版本 我又下載了 apr-util-1.3.12.tar.gz
具體步驟如下: 1.解決apr not found問題——————> [root@yahoo test]# tar -zxf apr-1.4.5.tar.gz [root@yahoo apr-1.4.5]# ./configure --prefix=/usr/local/apr [root@yahoo apr-1.4.5]# make [root@yahoo apr-1.4.5]# make install 2.解決APR-util not found問題>>>> [root@yahoo test]# tar -zxf apr-util-1.3.12.tar.gz [root@yahoo apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config [root@yahoo apr-util-1.3.12]# make 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:///
#./configure –help | grep pcre --with-pcre=PATH Use external PCRE library 下載:http:///projects/pcre #unzip -o pcre-8.10.zip #cd pcre-8.10 #./configure --prefix=/usr/local/pcre #make #make install 4.編譯Apache [root@yahoo httpd-2.3.12-beta]# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ [root@yahoo httpd-2.3.12-beta]# make [root@yahoo httpd-2.3.12-beta]# /usr/local/apache2/bin/apachectl start 在IE中輸入地址 ,顯示 It works! |
|