首页 > 其他 > 详细

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

时间:2018-06-12 10:07:53      阅读:310      评论:0      收藏:0      [点我收藏+]

Linux系统在安装python3的时候报错:

$ ./configure --prefix=/usr/local/python3

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for python3.6... no

checking for python3... no

checking for python... python

checking for --enable-universalsdk... no

checking for --with-universal-archs... no

checking MACHDEP... linux

checking for --without-gcc... no

checking for --with-icc... no

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/home/ec2-user/Python-3.6.1‘:

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

See `config.log‘ for more details

解决方法:

$sudo yum install gcc

过程中输入y

完成安装后再运行

$./configure --prefix=/usr/local/python3

 

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

原文:https://www.cnblogs.com/wendaobiancheng/p/9171658.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!