日期:2014-05-16  浏览次数:20906 次

ubuntu下apache httd/cgi的编译与安装

参考:http://www.jb51.net/article/18230.htm

http://www.51testing.com/html/18/311318-832068.html

?

首先到apache的主页下载最新版本的apache http server,地址为 http://httpd.apache.org/?

安装apache:?
切换到httpd-2.4.6.tar.bz2所在目录,然后:?
#??tar xvf httpd-2.4.6.tar.bz2?
此时在该目录下有一个文件夹httpd-2.4.6,切换到该文件夹:?
# cd ./httpd-2.4.6
安装到 /usr/local/apache2/ 下面,输入下面的命令:?
# ./configure --prefix= /usr/local/apache2?
# make?
# make install?

?

进行到./configure的时候报错。提示configure: error: APR not found. Please read the documentation.

解决方法:

1.解决apr not found问题
APR和APR-UTIL的下载地址:http://apr.apache.org/download.cgi

[root@yahoo test]# ?tar vfc apr-1.4.8.tar.bz2?

[root@yahoo apr-1.4.8]# ./configure --prefix=/usr/local/apr

[root@