Fix an Error: No Acceptable C Compiler Found in $PATH Linux
June 5, 2024 2024-06-01 14:53Fix an Error: No Acceptable C Compiler Found in $PATH Linux
Fix an Error: No Acceptable C Compiler Found in $PATH Linux
When you trying to install the packages or software in your Ubuntu/Debian or CentOS operating system you may get an error like below,
CentOS/RedHat:
“no acceptable c compiler found in $path linux,no acceptable c compiler found in $path cenots,no acceptable c compiler found”
no acceptable c compiler found in $path linux,no acceptable c compiler found in $path cenots,no acceptable c compiler found
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/download/GeoIP-1.4.8':
configure: error: no acceptable C compiler found in $PATH
You have to verify gcc packages has installed in your system using rpm command, if it’s not installed please install using the command below,
$ sudo yum install gcc glibc glibc-common gd gd-devel -y
or
$ sudo yum groupinstall "Development tools" -y
For Ubuntu:
$ sudo apt-get install build-essential -y
For Debian:
# sudo apt-get install build-essential -y