LinuxSir.cn,穿越时空的Linuxsir!

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

apache的安装问题!(高手帮忙)

[复制链接]
发表于 2006-5-11 18:44:46 | 显示全部楼层 |阅读模式
我是下载的 源码apache (即:httpd-2.2.0.tar.gz) , 环境是 redhat9.0
我先将下载来的源文件复制到  /usr/local/src 下
顺利的进行完解压缩, 在执行配置文件时configure 出现了 错误提示 如下:
[root@camel httpd-2.2.0]# ./configure

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.2.2
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

进行编译时出现了 下面的 错误 提示:
[root@camel httpd-2.2.0]# make
make: *** No targets specified and no makefile found.  Stop.

我是 刚接触 linux也是第一次安装apache 不知道问题出在哪?
希望高手帮忙看下   谢拉 !
发表于 2006-5-11 21:32:05 | 显示全部楼层
你的GCC编译器没有安装.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-12 09:20:37 | 显示全部楼层
Post by maya_mason
你的GCC编译器没有安装.


谢谢你的提醒,问题解决了。
是因为没有装 gcc 编译器的原因造成的

另外提醒和我一样的菜鸟, 在初次安装gcc的时候 不能安装源码形式的
因为没有gcc 编译不会成功
所以只能安装 rpm 包
在系统光盘的源文件里能够找到
回复 支持 反对

使用道具 举报

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

本版积分规则

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