. Advertisement .
..3..
. Advertisement .
..4..
As the title says, I am getting the “configure: error: no acceptable c compiler found in $path” error. How can I fix it so the error goes away?
Here is my detail:
mkdir ~/src
wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar -zxvf Python-2.7.1.tar.gz
cd Python-2.7.1
mkdir ~/.localpython
./configure --prefix=/home/<user>/.localpython
make
make install
When I operated it and I received the error text:
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home3/mikos89/Python-2.7.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
I appreciate any help from you.
The cause: The error is due to missing C compiler in your $PATH. This means that either gcc isn’t installed or it’s not in your $PATH variable.
Solution: Use this to install gcc (run as root):
Your
$PATH
does not contain the gcc compiler. This means that either gcc is not installed on your$PATH
or that it’s not in the $PATH variable.This will install gcc: (run root).
Redhat base
Debian base
OpenSUSE base