When installing Apache httpd, you will often encounter the following problems:
Configure: Error: Apr not found. Please read the documentation.
Configure: Error: Apr-util not found. Please read the documentation.
Configure: Error: PCRE-config for libpcre not found. PCRE is required and available
There are also articles on the Internet to guide you how to download and install these dependent files. This article
Package these dependent files in the http://download.csdn.net/detail/kkdelta/4424852.
Put all the following files in the/root/wkr directory
Apr-1.4.6.tar.gz
Apr-util-1.4.1.tar.gz
Httpd-2.4.2.tar.gz
Pcre-8.30.zip
1. Install APR:
Tar-zxvf apr-1.4.6.tar.gz
CD apr-1.4.6
./Configure
Make
Make install
2, install APR-UTIL
# Tar-zxvf apr-util-1.4.1.tar.gz
# Cd apr-util-1.4.1
#./Configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/APR
# Make
# Make install
3. Install PCRE
# Unzip-O pcre-8.30.zip
# Cd pcre-8.30
#./Configure -- prefix =/usr/local/PCRE
# Make
# Make install
4. install Apache
Tar-xzvf httpd-2.4.2.tar.gz
CD httpd-2.4.2
. /Configure -- prefix =/usr/local/Apache/-- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util -- -PCRE =/usr/local/PCRE
# Make
# Make install
5. Start Apache
CD/usr/local/Apache/bin
./Apachectl start
If you need a new version:
Http://httpd.apache.org/download.cgi
Http://apr.apache.org/download.cgi
Http://sourceforge.net/projects/pcre/