Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

centos

rhel

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

like image 898
Eng7 Avatar asked Feb 25 '16 17:02

Eng7


People also ask

How do I know if GCC is installed on Linux?

In the Command Prompt window type “gcc” and hit enter. If the output says something like “gcc: fatal error: no input files”, that is good, and you pass the test.

How do I install latest GCC?

If you want to install gcc-4.8 , you need to use sudo apt-get install gcc-4.8 . gcc-4.9 , gcc-4.8 , gcc-4.7 , gcc-4.6 all are in Ubuntu main repo.


1 Answers

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 
like image 71
xian Avatar answered Oct 21 '22 06:10

xian