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

来源:互联网 发布:知乎回答怎么加图片 编辑:程序博客网 时间:2024/06/07 02:21
[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


阅读全文
0 0
原创粉丝点击