yum install mysql-community-server 安装mysql 报错求大神帮忙!!!!

[root@11 mysql]# yum install mysql-community-server

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.16-1.el7 for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.7)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:8.0.16-1.el7 will be installed
---> Package mysql-community-server.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.7)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-8.0.16-1.el7.x86_64
---> Package mysql-community-libs.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-libs-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-libs-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-libs-8.0.16-1.el7.x86_64
---> Package mysql-community-server.x86_64 0:8.0.16-1.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.18)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.7)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3.5)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-8.0.16-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.19)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.5)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: systemd
Error: Package: mysql-community-libs-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.5)(64bit)
Error: Package: mysql-community-libs-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.7)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libsasl2.so.3()(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.19)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.5)(64bit)
Error: Package: mysql-community-libs-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-server-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.17)(64bit)
Error: Package: mysql-community-client-8.0.16-1.el7.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-2.6.6-8.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
2:postfix-2.6.6-8.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
2:postfix-2.6.6-8.el6.x86_64 has missing requires of mysql-libs

chaishen10000
柴神 回复KerwinDG: 首先确认是不是centos7,然后:1、卸载mysql;2、yum update;3、yum clean;4、安装
5 个月之前 回复
qq_25613479
KerwinDG 解决了吗???
6 个月之前 回复

2个回答

可能是 gcc 编译工具的问题,目标机器是虚拟机还是实体机呢,安装的时候选择开发工具了吗?
参考看看这个:http://www.mamicode.com/info-detail-1663865.html

我昨天也出现了同样的错误,我的情况是在centos6安装了centos7的rpm,卸载centos7的rpm后还是出现这样的报错,解决办法:

#找到已装的rpm包名
rpm -qa|grep mysql
#卸载
rpm -e 包名
#清缓存 关键!!
yum clean all

然后下载安装对应系统的rpm包就可以了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐