1.http://labs.mop.com/apache-mirror//httpd/httpd-2.4.2.tar.bz2下载apache
2.tar -jxvf httpd-2.4.2.tar.bz2解压
3../configure –prefix=/usr/local/apache配置apache路径
4.安装一些所需插件
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gzwget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
a:解决apr not found问题>>>>>>
- cd apr-1.4.5
- ./configure --prefix=/usr/local/apr
- make && make install
-
b:解决APR-util not found问题>>>>
- tar -zxf apr-util-1.3.12.tar.gz
- cd apr-util-1.3.12
- ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
- make && make install
c:解决pcre问题>>>>>>>>>
- unzip -o pcre-8.10.zip
- cd pcre-8.10
- ./configure --prefix=/usr/local/pcre
- make
- --disable-shared --with-pic
- make&&make install
d.最后编译Apache时加上:
--with-apr=/usr/test/apr
--with-apr-util=/usr/test/apr-util/
--with-pcre=/usr/test/pcre
5.make&&make install
本文详细介绍了如何从源代码安装Apache Web服务器,并解决安装过程中遇到的apr、apr-util、pcre依赖问题。包括下载源码、解压、配置路径、安装所需插件等步骤。
4532

被折叠的 条评论
为什么被折叠?



