当我尝试使用此命令在centos上安装mysql-server时:
yum安装MysqL-server
服务器回复:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/Metalink | 11 kB 00:00
* base: centos.mia.host-engine.com
* epel: reflector.westga.edu
* extras: centos.aol.com
* remi-safe: mirrors.mediatemple.net
* rpmforge: mirror.us.leaseweb.net
* updates: mirror.math.princeton.edu
* webtatic: us-east.repo.webtatic.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.0 MB 00:00
extras | 3.4 kB 00:00
mysql-connectors-community | 2.4 kB 00:00
MysqL-tools-community | 2.5 kB 00:00
MysqL56-community | 2.5 kB 00:00
remi-safe | 2.9 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
webtatic | 3.6 kB 00:00
Package MysqL-server is obsoleted by MysqL-community-server, trying to install MysqL-community-server-5.6.30-2.el7.i686 instead
Resolving Dependencies
Running transaction check
Package MysqL-community-server.i686 0:5.6.30-2.el7 will be installed
Processing Dependency: MysqL-community-common(x86-32) = 5.6.30-2.el7 for
.
.
.
etc . . . .
.
.
.
Processing Dependency: systemd for package: MysqL-community-server-5.6.30-2.el7.i686
Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15) for package: MysqL-community-server-5.6.30-2.el7.i686
Processing Dependency: libc.so.6(GLIBC_2.17) for package: MysqL-community-server-5.6.30-2.el7.i686
Finished Dependency Resolution
Error: Package: MysqL-community-libs-5.6.30-2.el7.i686 (MysqL56-community)
Requires: libc.so.6(GLIBC_2.17)
Error: Package: MysqL-community-server-5.6.30-2.el7.i686 (MysqL56-community)
Requires: systemd
Error: Package: MysqL-community-server-5.6.30-2.el7.i686 (MysqL56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)
Error: Package: MysqL-community-client-5.6.30-2.el7.i686 (MysqL56-community)
Requires: libc.so.6(GLIBC_2.17)
Error: Package: MysqL-community-server-5.6.30-2.el7.i686 (MysqL56-community)
Requires: libc.so.6(GLIBC_2.17)
You Could try using --skip-broken to work around the problem
You Could try running: rpm -Va --nofiles --nodigest
我在网上搜索了libc.so.6(GLIBC_2.17),但只找到了
glibc-2.17-106.el7_2.1.x86_64.rpm但是对于centos 7.2.
我不知道它是否有用!并且不知道如何使用它.
解决方法:
您正在将CentOS 6软件包(.el6)与CentOS 7软件包(.el7)混合使用,这是无效的.他们差异很大.
你安装了MysqL56-community-release-el7.*而不是MysqL56-community-release-el6 *,where from你得到了.
yum remove "MysqL56-community-release-el7.*"
安装正确的(如前所述安装),然后它应该适合你.
在你的/etc/yum.repos.d/中找到MysqL-56-community并通过在内部设置enable = 0来禁用它,如果你不知道那里做了什么.