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
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
相关文章推荐
- apache源码编译安装./configure时出现gcc报错
- 安装源码版apache出现 configure: error: C compiler cannot create executables错误
- apache源码编译安装时报错:configure: error: ...No recognized SSL/TLS toolkit detected
- 编译安装apache出现问题:configure: error: APR not found . P
- CentOS 源码编译安装LAMP(Apache MySQL PHP)
- CentOS 4.4下源码编译安装apache+php+mysql
- apache源码编译中首先安装pcre的原因
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- wdOS系统下源码编译安装Apache2.2.22+php5.3.10
- debian下源码编译安装apache
- Red Hat Linux 9下的Mysql5.0.19+Apache 2.2.0 + PHP 5.1.2+GD库源码编译安装过程
- Windows平台Apache 2.2.15 源码编译安装
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- wdOS系统下源码编译安装LNAMP(linux+nginx+apache+mysql+php)
- 编译安装PHP出现Cannot load /usr/local/apache/modules/libphp5.so
- Apache 2.2源码编译安装
- 安装mysql ./configure编译时出现错误:error: No curses/termcap library found解决方法
- CentOS 下源码编译安装apache+php+mysql
- [伊达原创]FreeBSD8.0源码编译安装MYSQL5 APACHE2.2 PHP5.3.2
- 源码编译安装ldap+apache+php+phpldapadmin