[Apache][Error] configure: error: no acceptable C compiler found in $PATH

Tadashi Shigeoka ·  Wed, February 1, 2012

When I tried to install Apache from source code and compile it, an error occurred.

checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/httpd-2.2.22/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

It seems the error was due to the absence of gcc.

I resolved it by installing gcc and gcc-c++.

# yum -y install gcc gcc-c++

That’s all from the Gemba.