安装软件时,出现:configure failed for srclib/apr错误

在红帽 Linux 安装apache 运用命令httpd-2.2.11]# ./configure  --prefix=/usr/local/apache 时出现了

........................

checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/httpd-2.2.11/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

   查看了一下原来是错误开始于srclib/apr文件,检查gcc编译器时提示没发现并且在系统环境变量$PATH中没有合适的c编译器,以是使用yum -y install gcc来安装gcc编译器/或者用rpm包安装,就可继续安装了.(出自:


http://hi.baidu.com/haobaoipv6/item/f63aa709e84a23e3fe240d78