No acceptable C compiler found in $PATH while installing the C compiler

Eng7 picture Eng7 · Feb 25, 2016 · Viewed 44k times · Source

I am facing the following error, while installing the C compiler itself (gcc gnu).

configure: error: in `/home/gcc-5.3.0':
configure: error: no acceptable C compiler found in $PATH

Noting that I have tried the solutions listed in this question with no success.

OS: RHEL6 and CentOS

Answer

xian picture xian · Feb 26, 2016

You need to install a compiler to compile. The solutions in the mentioned question should work:

yum install gcc

or

yum groupinstall "Development tools"

After that, try to run your compiler to make sure everything is aligned:

gcc