configure: error: no acceptable C compiler found

最近更新時間 2020-01-04 11:54:57

源代碼安裝Python3時出現如下錯誤:

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.8... 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 gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/data/software/Python-3.8.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

解決方案: 

報錯的原因時系統中沒有C編譯器,安裝即可,可同時安裝C++編譯器。

yum -y install gcc gcc-c++
rss_feed