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
终于安装好了
分享到:
相关推荐
apache 安装过后基本配置文件说明.
apache安装配置详解,希望能帮助到每一位开发人员
linux下的apache安装与配置,内包含安装包与依赖的包。
apache安装后所有的文件夹详细说明
apache安装图文详解,内附详细安装介绍,新手安装必备资料
linux Apache安装(图文) linux Apache安装(图文) linux Apache安装(图文)
描述在linux下安装apache的整个详细过程
(1)apache安装:安装步骤就不说了,简单。需要注意的一点就是检查本机的iis端口号不要和apache冲突,此apache包的默认端口是80。安装完成后,打开 http://loccalhost,如果能出现内容,那你的Apache就安装成功了...
apache安装必备
Apache2安装部署以及配置文档Apache2安装部署以及配置文档
PHP+MySQL+apache安装,教PHP初学者如何顺利安装成功!
在Ubuntu中安装apache 安装指令: sudo apt-get install apache2 安装结束后: 产生的启动和停止文件是:/etc/init.d/apache2 启动: sudo apache2ctl -k start 停止: sudo apache2ctl -k stop 重新启动: sudo...
详细讲解apache安装 php和apache整合 虚拟目录 虚拟主机
ubuntu下svn+apache安装配置
Linux环境apache安装 Linux环境apache安装 Linux环境apache安装
window版下的apache安装程序,绝非源代码,以及配安装步骤,忘大家喜欢
svn+apache安装配置 svn+apache安装配置
php+mySQL+apache安装步骤,绝对详细.
apache 安装程序包使用者可以直接下载。
在 windows 下为apache 安装多个服务,可以在apache下建立多个网站。