今天在AIX上面安装Python-2.7.2时失败,报下面的错误
checking for --enable-universalsdk... no checking for --with-universal-archs... 32-bit checking MACHDEP... aix6 checking EXTRAPLATDIR... checking machine type as reported by uname -m... 00C72F964C00 checking for --without-gcc... checking for gcc... xlc_r checking whether the C compiler works... no configure: error: in `/bomcht4/bomc/tools/python2.7/src/Python-2.7.2': configure: error: C compiler cannot create executables See `config.log' for more details
解决办法
设置环境变量
export CC=gcc
再次安装成功!