Chinaunix首页 | 论坛 | 博客
  • 博客访问: 508860
  • 博文数量: 101
  • 博客积分: 1635
  • 博客等级: 上尉
  • 技术积分: 1282
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-05 01:51
文章分类

全部博文(101)

文章存档

2019年(2)

2018年(16)

2013年(14)

2012年(69)

我的朋友

分类: LINUX

2012-11-13 16:40:20


#./configure --prefix……检查编辑环境时出现:
checking for APR... no
configure: error: APR not found . Please read the documentation.
可以用./configure –help | grep apr 查看帮助。
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
安装APR(Apache Portable Runtime )
下载:
#tar -zxvf apr-1.4.6.tar.gz
# cd /apr-1.4.6
#./configure --prefix=/usr/local/apr
#make
#make install
再次检查编译环境出现
checking for APR-util... no
configure: error: APR-util not found . Please read the documentation.
#./configure –help | grep apr-util
--with-apr-util=PATH prefix for installed APU or the full path to
下载:
#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/usr
#make
#make install
之后到/oracle/http-2.4.2路径下
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
#make
make install
注意:Apache在安装时不会检查参数是否正确,错误的参数会直接被丢弃,不会报告给用户。但可以使用echo $?命令检查是否有错误,当输出结果为0时表示没有错误。
#echo $?
0
设置 apache 开机时自动启动
cp /usr/local/apache/httpd/bin/apachectl /sbin/
在#vi /etc/rc.d/rc.local
增加一行 /sbin/apachectl start
可以在本地输入127.0.0.1来测试apache是否已经启动
完工
good luck!
阅读(1567) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~