Python3.6安裝報錯 configure: error: no acceptable C compiler found in $PATH
阿新 • • 發佈:2018-02-03
i686 conf oca system log 編譯環境 rsa clas 報錯
安裝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 checkingfor 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