apachegccpathrhel5

configure gcc in RHEL5 - no acceptable C compiler found in $PATH


I want to install Apache in RHEL5. While configuring httpd-2.4.2 following error came:

configure: error: no acceptable C compiler found in $PATH

So I downloaded gcc-4.7.0 and tried configuring it. Still the same error is coming.

$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libitm support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/httproot/gcc-4.7.0':
configure: error: no acceptable C compiler found in $PATH

Following are some of the status results:


I can't use yum. So please help in resolving this issue.


Solution

  • Thanks for all those helped me. I have succesfully make gcc work. I got rpm files for gcc and http://rpmfind.net//linux/RPM/centos/5.8/x86_64/CentOS/