configure: error: no acceptable C compiler found in $PATH

源码编译python2.7.2报如下错误: # ./configure checking for --enable-universalsdk... no checking for --with-universal-archs... 32-bit checking MACHDEP... linux2 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 `/opt/python2.7.2/Python-2.7.2': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details
已邀请:

空心菜 - 心向阳光,茁壮成长

这个问题很明显,是没有安装gcc,如下安装再编译试试:
# yum -y install gcc gcc-c++

要回复问题请先登录注册