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
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With