Python 安装报错configure: error: no acceptable C compiler found in $PATH

释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要

错误日志如下

[root@CentOS-79-64-minimal Python-3.8.5]# ./configure   --enable-optimizations  --prefix=/opt/python38   --with-ssl
configure: WARNING: unrecognized options: --with-ssl
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 `/root/Python-3.8.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

查看得知未安装合适的编译器。

yum install gcc-c++
(使用sudo yum install gcc-c++时会自动安装/升级gcc及其他依赖的包。)

重新执行

./configure   --enable-optimizations  --prefix=/opt/python38   --with-ssl
make
make install

给TA打赏
共{{data.count}}人
人已打赏
报错锦集

Elasticsearch 索引只读403 read-only

2022-3-30 20:45:23

报错锦集

Windows Server 2016离线安装.NET Framework 3.5

2022-4-25 14:27:55

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索