安装python编译时出现如下的错误:
[root@test1 ~]#./configure –prefix=/usr/local/python3.6
checking for –enable-universalsdk… no
checking for –with-universal-archs… 32-bit
checking MACHDEP… linux
checking for –without-gcc… no
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in `/usr/local/src/pythonSoft/Python-3.3.4’:
configure: error: no acceptable C compiler found in $PATH
原因:本机缺少gcc编译环境
方法:
通过yum安装gcc编译环境
yum install -y gcc