`
luoping0425
  • 浏览: 106407 次
  • 性别: Icon_minigender_2
  • 来自: 赣州
文章分类
社区版块
存档分类
最新评论

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

 

终于安装好了

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics