httpd2.4.2安装文档

httpd2.4.2安装文档

tar zxvf httpd-2.4.2.tar.gz

cd httpd-2.4.2

./configure --prefix=/usr/local/httpd

checking for APR... no

configure: error: APR not found.  Please read the documentation.

解决办法:下载并安装

http://apr.apache.org/download.cgi

wget http://apache.etoak.com//apr/apr-1.4.6.tar.gz

wget http://apache.etoak.com//apr/apr-util-1.4.1.tar.gz

tar zxvf apr-1.4.6.tar.gz

cd apr-1.4.6

./configure --prefix=/usr/local/apr

make && make install

cd httpd-2.4.2

./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr

checking for APR-util... no

configure: error: APR-util not found.  Please read the documentation.

tar zxvf apr-util-1.4.1.tar.gz

cd apr-util-1.4.1

./configure --prefix=/usr/local/apr-util

checking for APR... no

configure: error: APR could not be located. Please use the --with-apr option.

./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/

make && make install

cd httpd-2.4.2

./configure --prefix=/usr/local/httpd --with-apr=/usr/jlocal/apr/ --with-apr-util=/usr/local/apr-util/

checking for pcre-config... false

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz

tar zxvf pcre-8.30.tar.gz

cd pcre-8.30

./configure --prefix=/usr/local/pcre

cd httpd-2.4.2

./configure --prefix=/usr/local/httpd --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

安装apache 需要指定apr ,apr-util ,pcre 。问题在于指定的目录pcre是安装后的目录而apr和apr-util不是安装后的目录而是源文件目录

make && make install

[# /usr/local/apache2/bin/apachectl start

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值