apache源码编译安装./configure时出现gcc报错
2012-03-26 14:25
363 查看
[align=center]apache源码编译安装./configure时,出现以下报错:[/align]
[root@mail httpd-2.2.11]# ./configure --prefix=/usr/local/apache2/ --enable-so --enable-rewrite="shared" --enable-ssl --enable-module="all" --enable-mods-shared="most"
报错信息如下:
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 ...
checking for APR... reconfig
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.3.3
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.11/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
[root@mail httpd-2.2.11]#
[root@mail httpd-2.2.11]# apt-get install gcc
-bash: apt-get: command not found
解决方法:yum install gcc 或者[root@mail httpd-2.2.11]# rpm -ivh kernel-headers-2.6.18-128.el5.i386.rpm glibc-headers-2.5-34.i386.rpm glibc-devel-2.5-34.i386.rpm libgomp-4.3.2-7.el5.i386.rpm gcc-4.1.2-44.el5.i386.rpm rpm glibc-devel-2.5-34.i386.rpm libgomp-4.3.2-7.el5.i386.rpm等相关包。本文出自 “tonylinux” 博客,请务必保留此出处http://tonylinux.blog.51cto.com/2268300/817372
[root@mail httpd-2.2.11]# ./configure --prefix=/usr/local/apache2/ --enable-so --enable-rewrite="shared" --enable-ssl --enable-module="all" --enable-mods-shared="most"
报错信息如下:
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 ...
checking for APR... reconfig
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.3.3
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.11/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
[root@mail httpd-2.2.11]#
[root@mail httpd-2.2.11]# apt-get install gcc
-bash: apt-get: command not found
解决方法:yum install gcc 或者[root@mail httpd-2.2.11]# rpm -ivh kernel-headers-2.6.18-128.el5.i386.rpm glibc-headers-2.5-34.i386.rpm glibc-devel-2.5-34.i386.rpm libgomp-4.3.2-7.el5.i386.rpm gcc-4.1.2-44.el5.i386.rpm rpm glibc-devel-2.5-34.i386.rpm libgomp-4.3.2-7.el5.i386.rpm等相关包。本文出自 “tonylinux” 博客,请务必保留此出处http://tonylinux.blog.51cto.com/2268300/817372
相关文章推荐
- apache源码编译安装./configure时出现gcc报错
- apache源码编译安装时报错:configure: error: ...No recognized SSL/TLS toolkit detected
- 安装源码版apache出现 configure: error: C compiler cannot create executables错误
- 编译安装apache出现问题:configure: error: APR not found . P
- Apache2.4源码编译安装的依赖问题
- 源码编译安装apache报APR错及解决方案
- centos 7.1 apache 源码编译安装
- 源码编译安装gcc-5.3.0
- 编译安装PHP出现Cannot load /usr/local/apache/modules/libphp5.so
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- centos下apache源码编译安装
- apache源码编译安装详解
- 源码编译安装apache
- 编译安装php-5.6.19出现的问题configure: error: mysql configure failed. Please check config.log
- 虚拟机CentOS7最小化安装下源码编译搭建LAMP环境之二: ————Apache编译安装
- Centos 6.3 源码编译安装 apache
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- apache源码编译安装问题
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation