LInux——安装Apache

在安装Apache的httpd的时候经常会遇到:
configure: error: APR not found .  Please read the documentation.
configure: error: APR-util not found .  Please read the documentation.
configure: error: pcre-config for libpcre not found. PCRE is required and available

网上也有文章指导如何下载后安装这些依赖的文件,本文
将这些依赖的文件都打包在http://download.csdn.net/detail/kkdelta/4424852.
将下面所有文件都放在 /root/wkr目录
apr-1.4.6.tar.gz
apr-util-1.4.1.tar.gz
httpd-2.4.2.tar.gz
pcre-8.30.zip

1,安装APR:
tar -zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make
make install
2,安装APR-UTIL
#tar -zxvf apr-util-1.4.1.tar.gz
#cd apr-util-1.4.1
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install
3安装pcre
#unzip -o pcre-8.30.zip
#cd pcre-8.30
#./configure --prefix=/usr/local/pcre
#make
#make install
4安装Apache
tar -xzvf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure --prefix=/usr/local/apache/ --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
#make
#make install
5启动Apache
cd /usr/local/apache/bin
./apachectl start
如果需要新版本:
http://httpd.apache.org/download.cgi
http://apr.apache.org/download.cgi
http://sourceforge.net/projects/pcre/

上一篇:mysql 之SQL语句--NSERT SELECT ON DUPLICATE KEY UPDATE的写法


下一篇:【问题记录】 Linux 安装 apache 遇到的一些问题