码迷,mamicode.com
首页 > 编程语言 > 详细

Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH

时间:2018-02-03 21:59:38      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:$path   tab   soft   blog   gpo   /usr   arch   pre   环境   

安装python的时候出现如下的错误:

[root@master ~]#./configure --prefix=/usr/local/python3.6
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in /usr/local/src/pythonSoft/Python-3.3.4:
configure: error: no acceptable C compiler found in $PATH
See `config.log for more details

 

由于本机缺少gcc编译环境
1、通过yum安装gcc编译环境: yum install -y gcc 
2、本机没有安装yum功能,可下载gcc安装包:https://gcc.gnu.org/

Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH

标签:$path   tab   soft   blog   gpo   /usr   arch   pre   环境   

原文地址:https://www.cnblogs.com/zhouxinfei/p/8410726.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!