在安装Python,进行make:
[root@zhoulei Python-3.6.1]# ./configure --prefix=/usr/local/python3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for python3.6... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/media/you-get/Python-3.6.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@zhoulei Python-3.6.1]# make
make: *** No targets specified and no makefile found. Stop.
我们可以看到一句
configure: error: no acceptable C compiler found in $PATH
解决:
yum install gcc