CentOS 7 libc.so.6(GLIBC_2.14)(64bit) is needed by…问题的解决办法
问题:
[root@cnetos7 Downloads]# rpm -ivh libpython3.8-3.8.7-2.mga8.i586.rpm
warning: libpython3.8-3.8.7-2.mga8.i586.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY
error: Failed dependencies:
libc.so.6(GLIBC_2.25) is needed by libpython3.8-3.8.7-2.mga8.i586
libc.so.6(GLIBC_2.26) is needed by libpython3.8-3.8.7-2.mga8.i586
libc.so.6(GLIBC_2.27) is needed by libpython3.8-3.8.7-2.mga8.i586
libc.so.6(GLIBC_2.28) is needed by libpython3.8-3.8.7-2.mga8.i586
libc.so.6(GLIBC_2.32) is needed by libpython3.8-3.8.7-2.mga8.i586
libintl.so.8 is needed by libpython3.8-3.8.7-2.mga8.i586
libm.so.6(GLIBC_2.29) is needed by libpython3.8-3.8.7-2.mga8.i586
libpython3.8-stdlib = 3.8.7-2.mga8 is needed by libpython3.8-3.8.7-2.mga8.i586
rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by libpython3.8-3.8.7-2.mga8.i586
原因:
原因是因为系统的glibc版本不符合安装要求,可以对glibc进行升级解决该问题。
解决方案:
Glibc升级步骤:
1、下载安装文件
[root@cnetos7 software]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.25.tar.gz
2、下载后执行以下命令:
[root@cnetos7 software]# tar -zxf glibc-2.25.tar.gz
[root@cnetos7 software]# cd glibc-2.25
[root@cnetos7 software]# mkdir glibc-build-2.25
[root@cnetos7 software]# cd glibc-build-2.25
[root@cnetos7 software]# ../configure --prefix=/usr/local/glibc-2.25
[root@cnetos7 software]# make && make install
注意:Glibc是向下兼容的,一般根据需要选择高一点的版本(比如同时出现需要2.14和2.17的Glibc版本,升级到2.17即可)。需要注意的是libc.so.6是基础库,操作要谨慎。
版权声明:本文为qq_30486109原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。