您的位置:首页 > 运维架构 > Apache

apache源码编译安装./configure时出现gcc报错

2017-06-17 23:27 267 查看
[root@wenxiang httpd-2.2.24]# ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --with-pcre

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 ...

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.4.6

checking for chosen layout... apr

checking for gcc... no

checking for cc... no

checking for cl.exe... no
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
[root@wenxiang httpd-2.2.24]# yum install gcc

解决方法:yum install gcc
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: