源码编译apache 2.4.3 常见问题

#./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.4.6 httpd-2.4.3/srclib/apr
cp -r apr-util-1.4.1
 
httpd-2.4.3/srclib/apr-util

2. 缺少pcre
configure: error: pcre-config for libpcre not found. PCRE is required and available from

解决办法:
下载pcre,编译

tar zxvf pcre-8.31.tar.gz
cd pcre-8.31
./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


你可能感兴趣的:(源码编译apache 2.4.3 常见问题)