d299a1f295d6a

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

释放双眼,带上耳机,听听看~!

错误日志如下

[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}}人
人已打赏
ELKStack报错锦集监控与日志

Elasticsearch 索引只读403 read-only

2022-3-30 20:45:23

Linux报错锦集

Linux -bash: fork: retry: 资源暂时不可用

2022-5-4 20:44:13

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