centos7安裝Python3.7,執行./configure時報錯,configure: error: no acceptable C compiler found in $PATH


執行./configure時報錯,configure: error: no acceptable C compiler found in $PATH

在安裝python3.7,配置編譯路徑時會遇到以下問題:

configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

查看得知沒有找到合適的編譯器。

可以使用下面的命令安裝編譯器,解決./configure時報錯。

sudo yum install gcc-c++  # 使用sudo yum install gcc-c++時會自動安裝/升級gcc及其他依賴的包

重新執行以下命令

./configure --prefix=/usr/local/python3
make
make install


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM