1. 程式人生 > >configure: error: APR not found. Please read the documentation

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

bin remove 卸載 bsp req work beta local 1.3

本以為Apache的編譯安裝很簡單,其實不然;

以前的環境下編譯報錯很少 ,但這次不行了

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


經網上查閱資料才知道這是Apache的關聯軟件

在apr.apache.org網站上可以下載此軟件(apr-1.4.5.tar.gz);編譯安裝完成後;本以為就可以相安無事的進行Apache的安裝 ;沒想到 突然間報了個

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

然後就下載apr-util-0.9.19.tar.bz2進行編譯安裝

安裝完成後再次進行Apache的編譯安裝 沒想到又報錯了


configure: error: APR version 1.3.0 or later is required
真的怒了 又看了下 ,主要是因為apr版本過低造成的,應該卸載相關舊版本後

安裝新版本 我又下載了 apr-util-1.3.12.tar.gz


yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs

具體步驟如下:

1.解決apr not found問題——————>

[[email protected] test]# tar -zxf apr-1.4.5.tar.gz

[[email protected] apr-1.4.5]# ./configure --prefix=/usr/local/apr

[[email protected] apr-1.4.5]# make

[[email protected] apr-1.4.5]# make install

2.解決APR-util not found問題>>>>

[[email protected]

/* */ test]# tar -zxf apr-util-1.3.12.tar.gz

[[email protected] apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config

[[email protected] apr-util-1.3.12]# make
[[email protected] apr-util-1.3.12]# make install

3.編譯Apache

[[email protected] httpd-2.3.12-beta]# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/

[[email protected] httpd-2.3.12-beta]# make
[[email protected] httpd-2.3.12-beta]# make install

[[email protected] httpd-2.3.12-beta]# /usr/local/apache2/bin/apachectl start

在IE中輸入地址 ,顯示

It works!

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