释放双眼,带上耳机,听听看~!
🤖 由 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