LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 641|回复: 3

[问题]fc5下apache2.2的问题 在线等啊

[复制链接]
发表于 2006-6-29 13:01:06 | 显示全部楼层 |阅读模式
二、安装Apache2
代码:

因为PHP是安装在apache之上的,所以在安装PHP之前要现装APACHE,而MYSQL是什么时候安装都可以。
1解压缩
shell> tar zxvf httpd-2.2.2.tar.gz
shell> cd httpd-2.2.2

2配置安装
shell> ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-module=rewrite --enable-shared=max
没有出现错误就 继续下一步

3编译安装
shell> make
没有出现错误就 继续下一步
shell> make install
没有出现错误就 继续下一步

4安装完成,测试
进入/usr/local/apache2(地2布指定的安装路径)
vim htdocs/index.html
随便写点东西
执行bin/apachectl start &
如果启动成功
打开浏览器浏览  http://127.0.0.1
如果看到你刚才些的东西,那么你的APACHE2安装成功了



按照上面的步骤装的时候在编译的时候出现错误
[root@localhost httpd-2.2.2]# ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-module=rewrite --enable-shared=max
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
Configuring APR library
Platform: i686-pc-linux-gnuoldld
checking for working mkdir -p... yes
APR Version: 1.2.7
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
紧急求救
发表于 2006-6-29 13:07:44 | 显示全部楼层
拜托,编译安装的话,怎么不安装gcc等开发工具?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-29 13:15:27 | 显示全部楼层
现在怎么安装开发工具啊?怎么可以补救啊
回复 支持 反对

使用道具 举报

发表于 2006-6-29 13:21:24 | 显示全部楼层
su -c ' yum install gcc* '
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表