在Centos6安装mysql 8.0.33系列提示错误如下:
[root@rhel64 Downloads]# rpm -ivh mysql-community-common-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-plugins-8.0.33-1.el6.x86_64.rpm \
> mysql-community-client-8.0.33-1.el6.x86_64.rpm \
> mysql-community-libs-8.0.33-1.el6.x86_64.rpm \
> mysql-community-icu-data-files-8.0.33-1.el6.x86_64.rpm \
> mysql-community-server-8.0.33-1.el6.x86_64.rpm
warning: mysql-community-common-8.0.33-1.el6.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-plugins-8.0.33-1.el6.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-client-8.0.33-1.el6.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-libs-8.0.33-1.el6.x86_64
libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by mysql-community-server-8.0.33-1.el6.x86_64
[root@rhel64 Downloads]# ls
2、按照网络上解决办法,按照openssl-libs-1.0.2k-19.el7.x86_64.rpm,报需要libc.so.6(GLIBC_2.17)
[root@rhel64 Downloads]# rpm -ivh openssl-libs-1.0.2k-19.el7.x86_64.rpm --force
warning: openssl-libs-1.0.2k-19.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
libc.so.6(GLIBC_2.14)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
libc.so.6(GLIBC_2.17)(64bit) is needed by openssl-libs-1:1.0.2k-19.el7.x86_64
2、配置centos-base源
备份阿里源配置文件
[wanchao@localhost ~]$ mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/Centos-Base.repo.bak
下载阿里源配置文件(2种方式)
[root@localhost ~]#wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost ~]#curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
修改yum配置文件CentOS-Base.repo
[wanchao@localhost ~]$ vim /etc/yum.repos.d/CentOS-Base.repo
#2、将全文中所有的“$releasever”字符串替换成“7”,因为我的系统centos7版本
#进入命令行模式
:%s/$releasever/7/g
#保存并退出
:wq
再次更新镜像源
[wanchao@localhost ~]$ yum clean all
[wanchao@localhost ~]$ yum makecache
3查看已安装的 gblic 版本
[root@rhel64 Downloads]# 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_PRIVATE
4使用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 &
Length: 1723952 (1.6M) [application/x-rpm]
Saving to: `glibc-static-2.17-55.el6.x86_64.rpm'
100%[=================================================================>] 197,136 246K/s in 0.8s
2023-07-07 00:33:34 (246 KB/s) - `glibc-utils-2.17-55.el6.x86_64.rpm' saved [197136/197136]
100%[=================================================================>] 1,043,692 587K/s in 1.7s
2023-07-07 00:33:35 (587 KB/s) - `glibc-devel-2.17-55.el6.x86_64.rpm' saved [1043692/1043692]
100%[=================================================================>] 677,944 499K/s in 1.3s
2023-07-07 00:33:35 (499 KB/s) - `glibc-headers-2.17-55.el6.x86_64.rpm' saved [677944/677944]
100%[=================================================================>] 1,723,952 293K/s in 6.1s
2023-07-07 00:33:40 (277 KB/s) - `glibc-static-2.17-55.el6.x86_64.rpm' saved [1723952/1723952]
100%[=================================================================>] 4,181,172 246K/s in 13s
2023-07-07 00:33:46 (312 KB/s) - `glibc-2.17-55.el6.x86_64.rpm' saved [4181172/4181172]
100%[=================================================================>] 14,624,176 199K/s in 1m 44s
2023-07-07 00:35:17 (138 KB/s) - `glibc-common-2.17-55.el6.x86_64.rpm' saved [14624176/14624176]
[7] 4151
[1] Done 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
[2] Done 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
[3] Done 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
[4] Done 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
[5] Done 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
[6] Done 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
[root@rhel64 glibc-2.17]# --2023-07-07 00:37:47-- 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
Resolving copr-be.cloud.fedoraproject.org... 52.44.175.77, 2600:1f18:8ee:ae00:d553:8ed5:d8b6:9f83
Connecting to copr-be.cloud.fedoraproject.org|52.44.175.77|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255380 (249K) [application/x-rpm]
Saving to: `nscd-2.17-55.el6.x86_64.rpm'
100%[=================================================================>] 255,380 281K/s in 0.9s
2023-07-07 00:37:48 (281 KB/s) - `nscd-2.17-55.el6.x86_64.rpm' saved [255380/255380]
[7]+ Done 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
下载好后,安装包如下:文章来源:https://www.toymoban.com/news/detail-529491.html
[root@rhel64 glibc-2.17]# ll
total 22184
-rw-r--r-- 1 root root 4181172 Feb 16 2015 glibc-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 14624176 Feb 16 2015 glibc-common-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 1043692 Feb 16 2015 glibc-devel-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 677944 Feb 16 2015 glibc-headers-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 1723952 Feb 16 2015 glibc-static-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 197136 Feb 16 2015 glibc-utils-2.17-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 255380 Feb 16 2015 nscd-2.17-55.el6.x86_64.rpm
[root@rhel64 glibc-2.17]#
安装rpm包文章来源地址https://www.toymoban.com/news/detail-529491.html
sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps
到了这里,关于Centos6 升级glibc-2.17,解决Requires: libc.so.6(GLIBC_2.17)(64bit)错误解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!