CentOS 编译安装Apache2.4.10
2014-09-30 17:43
411 查看
1、准备编译环境
yum -y install gcc make cmake autoconf libtool libevent
安装apache必须的依赖包
yum -y install apr-util apr pcre pcre-devel
2、下载软件包
wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.10.tar.gz
解压软件包:
tar -xzf httpd-2.4.10.tar.gz
3、编译安装(Apache 版本低于2.X的按照以下步骤操作)
注意的问题:
报错信息:
[/code]
[/code]
执行入下命令,重新进行编译:
[/code]
yum -y install gcc make cmake autoconf libtool libevent
安装apache必须的依赖包
yum -y install apr-util apr pcre pcre-devel
2、下载软件包
wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.10.tar.gz
解压软件包:
tar -xzf httpd-2.4.10.tar.gz
3、编译安装(Apache 版本低于2.X的按照以下步骤操作)
./configure --prefix=/usr/local/httpd make make install
注意的问题:
报错信息 :[/code]
configure: error: pcre-config for libpcre not found. PCRE is required and available from' target='_blank'>http://pcre.org/ [/code]
解决办法:执行yum -y install pcre pcre-devel 即可解决该报错。
报错信息:
[/code]
checking for APR... no configure: error: APR not found . Please read the documentation.
解决办法: 需要下载apr的最新版本的安装文件:[/code]
wget http://mirror.atlanticmetro.net/apache//apr/apr-1.4.6.tar.gz wget http://mirror.atlanticmetro.net/apache//apr/apr-util-1.4.1.tar.gz tar xvfz apr-1.4.6.tar.gz tar xvfz apr-util-1.4.1.tar.gz mv apr-1.4.6 httpd-2.4.2/srclib/apr (注意此目录为你自己的apache的安装文件的目录) mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-uti
[/code]
执行入下命令,重新进行编译:
./configure --prefix=/usr/local/httpd --with-included-apr make make install
[/code]
相关文章推荐
- centos手动编译安装apache、php、mysql
- centos apache php CentOS 5.0 编译安装 Apache+PHP...
- centos6.3编译安装Apache2.4.3+PHP5.4.8+Mysql5.5.8
- CentOS Apache安装设置编译器及编译参数
- CentOS 5.5 编译安装Apache+MySQL+PHP
- centos 编译安装php,apache,mysql
- centos 5.0 编译安装apache 2.2.6 php5.2.5 mysql5.0.46 Z
- LAMP一键安装包-CentOS 5/6下自动编译安装Apache,MySQL,PHP
- CentOS 下源码编译安装apache+php+mysql
- CentOS 5.5 编译安装Apache+MySQL+PHP(转)
- CentOS 源码编译安装APACHE2.4
- centos 5.0 编译安装apache 2.2.6+php5.2.5+mysql5.0.46+Zend笔记
- Centos 6编译安装apache&PHP&mysql
- CentOS 5.X 源码编译安装LAMP(Apache+MySQL+PHP)
- Centos5.9下编译安装LAMP(apache 2.4.4 mysql 5.6.10 php 5.4.12) 推荐
- CentOS 4.4 编译安装 apache 2.2.4(mod_ssl)+php 5.2.1 wi
- CentOS 6.0 最小化编译安装Apache+MySQL+PHP+Zend
- centos6.3编译安装Apache2.4.3+PHP5.4.8+Mysql5.5.8
- Centos 6编译安装apache&PHP&mysql
- LAMP一键安装包-CentOS 5/6下自动编译安装Apache,MySQL,PHP