apache安装

1. 下载apache: http://apache.freelamp.com//httpd,下载httpd-2.3.8.tar.gz

2. 解压:tar xvfz httpd-2.3.8.tar.gz

3.cd httpd-2.3.8

4./configure  // 执行该目录下配置脚本程序


出错1:

checking for APR… no        #找不到这个APR
configure: error: APR not found.  Please read the documentation

解决方法

 http://apache.freelamp.com/apr/apr-1.4.2.tar.bz2   下载apr-1.4.2.tar.bz2
tar -jxvf apr-1.4.2.tar.bz2
cd apr-1.4.2
./configure –prefix=/usr/local/apr
make
sudo make install

 

出错2:

checking for APR-util… no 
configure: error: APR-util not found.  Please read the documentation.

解决方法:

http://apache.freelamp.com//apr/  下载

cd apr-util-1.3.10
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
sudo make instal

-----------------------------------------------------------------------------------

出错2最后还是没有解决,重新下载httpd-2.2.16,重新开始

tar xvfz http-2.2.16.tar.gz
cd http-2.2.16
 

 

1.首先安装apr apr-util

 cd srclib/apr 
 ./configure --prefix=/usr/local/apr 
 make 
 make install

cd ..
cd httpd-2.2.16/srclib/apr-util 
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr 
make 
make install 

 

2.安装apache,在 httpd-2.2.16目录下

 

./configure --prefix=/usr/local/apache  --with-included-apr --enable-so --enable-rewrite=share --enable-proxy=share --enable-proxy-ajp=share --enable-dav=share --enable-dav-fs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util
make
make install
 

出错:

/bin/sh /usr/local/httpd-2.2.3/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache22/lib
make[2]: *** [install] Error 1

解决方法:在configure后使用命令make clean,然后重新make, make install

 

终于安装好了

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值