Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法

Posted longren

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法相关的知识,希望对你有一定的参考价值。

Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法

出现问题

在Centos6安装mysql 5.7.x 系列提示错误如下:

[root@VM_0_5_centos mysql]# rpm -ivh mysql-community-libs-5.7.18-1.el6.x86_64.rpm 
warning: mysql-community-libs-5.7.18-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
    libc.so.6(GLIBC_2.14)(64bit) is needed by mysql-community-libs-5.7.18-1.el6.x86_64
[root@VM_0_5_centos mysql]# 

需要安装一下libc.so.6(GLIBC_2.14)(64bit)

查看已安装的 gblic 版本

strings /lib64/libc.so.6 | grep GLIBC

执行如下:

[root@VM_0_5_centos glibc-2.14]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE

使用yum更新安装依赖

sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y

下载rpm包

wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm 
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm 

下载好后,安装包如下:

[root@VM_0_5_centos glibc-2.17]# ls -ll -h
total 22M
-rw-r--r-- 1 root root  4.0M Feb 17  2015 glibc-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root   14M Feb 17  2015 glibc-common-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 1020K Feb 17  2015 glibc-devel-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  663K Feb 17  2015 glibc-headers-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  1.7M Feb 17  2015 glibc-static-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  193K Feb 17  2015 glibc-utils-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root  250K Feb 17  2015 nscd-2.17-55.el6.x86_64.rpm
[root@VM_0_5_centos glibc-2.17]# 

安装rpm包

sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps

安装完毕后,再次查看版本

[root@VM_0_5_centos glibc-2.17]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_PRIVATE

可以看到一次性增加了 13 到 17 的版本号。

以上是关于Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.14)(64bit)错误解决方法的主要内容,如果未能解决你的问题,请参考以下文章

centos6.7下安装glibc-2.17

centos 升级glibc-2.17

glibc升级中遇到的小问题

centos6 安装glibc

yum安装出现Error: Package: glibc-headers-2.17-157.el7.x86_64 (centos7.3)类似报错解决方案

debuginfo-install glibc-2.17-157.el7.x86_64