安装gcc
yum -y install gcc

httpd-2.4.23.tar.gz 解压

tar -zxf httpd-2.4.23.tar.gz
cd  httpd-2.4.23 
./configure --prefix /usr/local/apache  
make&&make install

报错 ‘onfigure: error: APR not found . Please read the documentation’

1、下载相关的包

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz    
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz    
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

2、解决apr not found

[root@l test]# tar -zxf apr-1.4.5.tar.gz    
[root@l test]# cd  apr-1.4.5    
[root@l apr-1.4.5]# ./configure --prefix=/usr/local/apr    
[root@l apr-1.4.5]# make && make install    

3、解决APR-util not found

[root@e test]# tar -zxf apr-util-1.3.12.tar.gz    
[root@e test]# cd apr-util-1.3.12    
[root@e apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config --enable-utf8     
[root@e apr-util-1.3.12]# make && make install   

安装c++编译
`
yum install -y gcc gcc-c++
`
4、解决pcre问题

[root@e test]#unzip -o pcre-8.10.zip    
[root@e test]#cd pcre-8.10    
[root@e pcre-8.10]#./configure --prefix=/usr/local/pcre    
[root@e pcre-8.10]#make && make install  
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre  
make && make install