您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

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

5b51 2022/1/14 8:24:22 python 字数 2660 阅读 647 来源 www.jb51.cc/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 --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原因是未安装合适的解释器,解决办法如下:sudo yum install gcc-c++然后在重新执行./configuremakemake instal问题的解决也是我在网上找了很多帖子解决的,非原创,只是很难找,所有梳理了一下写给大家

概述

升级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

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

总结

以上是编程之家为你收集整理的linux 2.6升级Python2.7 ./configure 报错问题全部内容,希望文章能够帮你解决linux 2.6升级Python2.7 ./configure 报错问题所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶