码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS下apache源代码编译

时间:2014-05-09 09:49:24      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:style   tar   color   http   c   rgb   

首先下载安装包和关联包

1.下载apr-1.5.1-tar.gzapr-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

CentOS下apache源代码编译

标签:style   tar   color   http   c   rgb   

原文地址:http://www.cnblogs.com/sxmcACM/p/3717627.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!