前些日子买了腾讯云服务器,系统是用centos6.8,在安装mysql时遇到一些问题,做个记录备用。
1. 参照Centos6.8通过yum安装mysql5.7,在以下操作中
yum install mysql-community-server
遇到问题
Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
Requires: systemd
Error: Package: mysql-community-libs-5.6.40-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-client-5.6.40-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
2. 查看glibc版本
[root@VM_0_17_centos /]$ 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
发现没有GLIBC_2.17
3. 开始升级GLIBC_2.17:centos升级glibc(升级到 2.17版)
在这里如果出现
configure: error: no acceptable C compiler found in $PATH
说明没有安装
GCC软件套件,这里需要
yum install gcc
4. 继续安装mysql5.7
yum install mysql-community-server
如果还是遇到
步骤1
的问题,则执行以下命令
yum clean all
yum makecache
yum update
再继续执行
yum install mysql-community-server
并按照Centos6.8通过yum安装mysql5.7继续往下操作!
注:以上只是本人在腾讯云用centos6.8系统安装mysql5.7遇到的问题,仅限参考!