e Learning

Configure error no acceptable C compiler found in $PATH in Linux

You could get following error message “configure: error: no acceptable C compiler found in $PATH” when you try to compile and install a software from a source. I got above error message once, when I was going to install python 3 on CentOS 7.

“configure: error: no acceptable C compiler found in $PATH” in Linux

Reason for the error is your Linux machine does not have the gcc compiler installed. Install gcc compiler to fix the problem.

RedHat / CentOS 7 / Oracle Linux

Install gcc  using yum install command on CentOS 7, CentOS 6.5 and RedHat Linux.

yum install gcc

Debian / Ubuntu Linux

For Debian based Linux distributions use apt-get install command.

apt-get install gcc

Install gcc compiler Debian Linux

Once you install the gcc compiler you can compile programs without getting the error “configure: error: no acceptable C compiler found in $PATH”.