由于 gcc 问题,我无法在我的实验室中安装 python 3.7+

问题描述 投票:0回答:1

我正在尝试安装 python3.8.8 因为 pipx 需要 >python3.7+ 我想知道如何修复它并允许我在这个 centos 中成功安装 python。

[root@cdp-1 Python-3.8.8]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@cdp-1 Python-3.8.8]# uname -r
3.10.0-1062.12.1.el7.x86_64
[root@cdp-1 Python-3.8.8]#


[root@cdp-1 Python-3.8.8]# ./configure
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... gcc
checking whether the C compiler works... no
configure: error: in `/home/Python-3.8.8':
configure: error: C compiler cannot create executables
See `config.log' for more details
[root@cdp-1 Python-3.8.8]#
python-3.x
1个回答
0
投票
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
configure:3880: $? = 0
configure:3869: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3880: $? = 4
configure:3869: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3880: $? = 4
configure:3900: checking whether the C compiler works
configure:3922: gcc    conftest.c  >&5
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libgcc_s.so: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
configure:3926: $? = 1
configure:3964: result: no
configure: failed program was:
© www.soinside.com 2019 - 2024. All rights reserved.