redhat6.5 yum register 问题

安装apache时,出现如下错误:

configure: error: in `/usr/local/src/httpd-2.2.24/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

  解析错误提示: 

    配置编译参数时,/usr/local/src/httpd-2.2.24/srclib/apr文件出错,经检查,发现系统变量$PATH中没有编译器。

  解决方案:

    yum -y install gcc

  亦或手动安装gcc

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

posted @ 2018-10-15 11:39  V尊者  阅读(302)  评论(0编辑  收藏  举报