Skip to content

No acceptable C compiler found in $PATH

Sometimes you may get this error when you try to install something in a linux system

error: no acceptable C compiler found in $PATH

Solution:

The GCC compiler is not visible in the path variable.It means either you have not installed it or added to it’s path

To install the compiler in Ubuntu/Debian enter the below command

apt-get install build-essential

To install the C compiler in CentOS/Redhat enter the below command

yum groupinstall "Development Tools"