apache源码编译安装./configure时,出现以下报错:

[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等相关包。