码迷,mamicode.com
首页 > Web开发 > 详细

ubuntu下编译安装apache

时间:2015-10-27 19:52:12      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:

官网http://httpd.apache.org/download.cgi下载apache源码包后

/*解包*/
gzip -d httpd-2_x_NN.tar.gz
tar -xf httpd-2_x_NN.tar

/*编译并安装*/
cd httpd-2_x_NN
./configure --prefix=/usr/local/apache2
make
make install

 

编译apache出现的问题:configure: error: APR not found . Please read the documentation

下载APR包并解包(http://archive.apache.org/dist/apr/)

./configure --prefix=/usr/local/apr
make
sudo make install

 

同理解决APR-util not found问题,上面同一连接下载APR-util包并解压

./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
make
sudo make install

pcre缺失问题也一样,下载链接(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/)

 

ubuntu下编译安装apache

标签:

原文地址:http://www.cnblogs.com/qf19910623/p/4914684.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!