Turn from:
Http://www.cnblogs.com/Anker/p/3355573.html
Today from the Apache official online http://httpd.apache.org/download httpd Web server, because I installed before on the virtual machine, I first the Yum remove httpd to uninstall, and then reinstall. I use the source code installation, first of all./configure--prefix=/usr/local/apahce--enable-so, the following error is indicated:
Configure:error:APR not found. Please read the documentation.
Solutions
wget http://apache.freelamp.com/apr/apr-1.4.2.tar.gz Download 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 still prompts Apr-util not found, increases--WITH-APR=/USR/LOCAL/APR--with-apr-util=/usr/local/apr-util appears after
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
Download: Http://sourceforge.net/projects/pcre
Two: http://ftp.exim.llorien.org/pcre/
#unzip-O Pcre-8.10.zip
#cd pcre-8.10
#./configure--prefix=/usr/local/pcre
#make
#make Install
Last 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
Reference:
Http://www.itokit.com/2012/0430/73710.html
Http://www.linuxqq.net/archives/229.html
Below is the normal installation procedure? :
http://tonyguo.blog.51cto.com/379574/168534/
Configure:error:APR not found to install APAHCE under CentOS. Please read the documentation solution