1. 程式人生 > >configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

lan apr-util 網址 子目錄 htm .com cal 快的 content

Apache在2.4版本以後,編譯時:

# ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --with-pcre



  出現如下錯誤:

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and

apr-util packages to ./srclib/.



  網上搜索的解決方法雖正確,網址卻是打不開;於是,去apache官網找:

  進官網:www.apache.org --> download --> HTTP 模塊下找個比較快的網址 (如:http://apache.fayea.com/) --> 找到apr --> 選擇bz2或者gz的版本的apr和apr-util,復制鏈接,下載到/usr/local/src目錄下面。下面是下載的參數,如果出現網址錯誤,請去官網按照上面的方法下載:

# cd /usr/local/src
# wget http://apache.fayea.com/apr/apr-1.5.2.tar.bz2 # wget http://apache.fayea.com/apr/apr-util-1.5.4.tar.bz2 # tar -jxvf apr-util-1.5.4.tar.bz2
# tar -jxvf apr-1.5.2.tar.bz2



   將解壓的庫文件夾移動到httpd子目錄srclib裏(去掉版本號):

# cp -rf apr-1.5.2 /usr/local/src/httpd-2.4.18/srclib/apr   //將版本號去掉,下同
# cp -rf apr-util-1.5.4 /usr/local/src/httpd-2.4.18/srclib/apr-util



  完成上面操作,在執行編譯的時候,就不會報錯了。

參考文章:http://www.lai18.com/content/4710715.html

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.