分享一下 aix安装python提示C编译器问题的办法

 

今天在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

 

再次安装成功!

posted @ 2014-12-12 13:10  轮子手  阅读(588)  评论(0编辑  收藏  举报