加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

linux 2.6升级Python2.7 ./configure 报错问题

发布时间:2020-12-17 00:22:48 所属栏目:Python 来源:网络整理
导读:升级2.7.3使用命令./configure --prefix=/usr/local/python2.7.3时,出现以下错误:checking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for --enable-universalsdk... nochecking for -

升级2.7.3使用命令./configure --prefix=/usr/local/python2.7.3时,出现以下错误:checking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for --enable-universalsdk... nochecking for --with-universal-archs... 32-bitchecking MACHDEP... linux2checking EXTRAPLATDIR...?checking for --without-gcc... nochecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...?checking whether we are cross compiling... configure: error: in `/data/python/Python-2.7.3':configure: error: cannot run C compiled programs.If you meant to cross compile,use `--host'.

See `config.log' for more details

原因是未安装合适的解释器,解决办法如下:

然后在重新执行

./configuremakemake instal

问题的解决也是我在网上找了很多帖子解决的,非原创,只是很难找,所有梳理了一下写给大家

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读