首先下载安装包和关联包
1.下载apr-1.5.1-tar.gz和apr-util-1.5.3.tar.gz 网站:http://apr.apache.org/download.cgi
2.下载pcre-8.33.tar.gz 网站 : ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
3. 下载httpd-2.4.9.tar.gz 网站 : http://httpd.apache.org/download.cgi#apache24
1.安装过程中出现的问题
#./configure –prefix……检查编辑环境时出现:
1. 缺失 APR APR-util
configure: error:
Bundled APR requested but not found at ./srclib/. Download and unpack the
corresponding apr and apr-util packages to
./srclib/.
解决办法:
将APR和APR-util源码下载,解压放到httpd-2.4.3/srclib里面,并去除版本号
cp
-r apr-1.5.1 httpd-2.4.9/srclib/apr
cp
-r apr-util-1.5.3 httpd-2.4.9/srclib/apr-util
2. 缺少pcre
configure: error: pcre-config
for libpcre not found. PCRE is required and available
from
解决办法:
下载pcre,编译
tar zxvf pcre-8.33.tar.gz
cd pcre-8.33
./configure
&& make && make install
3.
mod_ssl
checking whether to enable mod_ssl… configure: error: mod_ssl
has been requested but can not be built due to prerequisite
failures
解决办法:yum install openssl-devel
CentOS下apache源代码编译,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/sxmcACM/p/3717627.html