다음 명령을 사용하여 centos에 mysql-server를 설치하려고 하면:
yum install 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
온라인으로 검색했지만 centos 7.2 libc.so.6(GLIBC_2.17)
만 찾았습니다
glibc-2.17-106.el7_2.1.x86_64.rpm
.
유용할지 모르겠네요! 그리고 그것을 사용하는 방법을 모른다.
답변1
.el6
CentOS 6 패키지( )와 CentOS 7 패키지( )를 혼합하고 있는데 .el7
이는 유효하지 않습니다. 그것들은 크게 다릅니다.
당신이 설치한 mysql56-community-release-el7.*
것은 mysql56-community-release-el6*
,그거 어디서 났어당신은 이해했습니다.
이 잘못된 패키지 소스를 제거하십시오.
yum remove "mysql56-community-release-el7.*"
이전에 설치한 것처럼 올바른 것을 설치하면 제대로 작동할 것입니다.
거기에서 무슨 일이 일어나는지 모르신다면, mysql-56-community
여러분의 컴퓨터에서 찾아서 /etc/yum.repos.d/
설정을 통해 비활성화하세요.enable=0