关于configure: error: no acceptable C compiler found in $PATH
Posted wendaobiancheng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于configure: error: no acceptable C compiler found in $PATH相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
configure: error: no acceptable C compiler found in $PATH
configure: error: no acceptable C compiler found in $PATH
configure: error: no acceptable C compiler found in $PATH
报错:checking for termcap functions library... configure: error: No curses/termca
configure: error: no acceptable C compiler found in $PATH 问题解决
报错configure:error: no acceptable C compiler found in $PATH。。