我正在尝试安装特定版本的 MySQL:mysql-community-server-5.6.29-2.el6
在 RedHat 6.6 上。
当我运行时yum install
,我得到依赖错误,但依赖显然是可用的。我不确定如何进行。
看起来有些东西在请求MySQL-community-libs-5.7.11-1.el6
,但我不知道如何强迫它不要。
有用的输出:
[root@cl-mgr01 ~]# yum install mysql-community-server-5.6.29-2.el6
## truncated for brevity ##
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: mysql-community-client(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: libnuma.so.1()(64bit) for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.29-2.el6 for package: mysql-community-client-5.6.29-2.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.6.29-2.el6 will be installed
---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.29-2.el6 will be obsoleting
---> Package mysql-libs.x86_64 0:5.1.73-3.el6_5 will be obsoleted
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-6.el6_5.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-6.el6_5.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.11-1.el6 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.11-1.el6 for package: mysql-community-libs-5.7.11-1.el6.x86_64
---> Package mysql-community-libs-compat.x86_64 0:5.7.11-1.el6 will be obsoleting
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.29-2.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-server-5.6.29-2.el6.x86_64
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el6 for package: mysql-community-libs-5.6.29-2.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.7.11-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.6.29-2.el6.x86_64 (mysql)
Requires: mysql-community-common(x86-64) = 5.6.29-2.el6
...
Available: mysql-community-common-5.6.29-2.el6.x86_64 (mysql)
mysql-community-common(x86-64) = 5.6.29-2.el6
...
Installing: mysql-community-common-5.7.11-1.el6.x86_64 (mysql)
mysql-community-common(x86-64) = 5.7.11-1.el6
Error: Package: mysql-community-libs-5.6.29-2.el6.x86_64 (mysql)
Requires: mysql-community-common(x86-64) = 5.6.29-2.el6
...
Available: mysql-community-common-5.6.29-2.el6.x86_64 (mysql)
mysql-community-common(x86-64) = 5.6.29-2.el6
...
Installing: mysql-community-common-5.7.11-1.el6.x86_64 (mysql)
mysql-community-common(x86-64) = 5.7.11-1.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
其他有用的输出:
[root@cl-mgr01 ~]# rpm -qa | grep mysql
mysql-connector-java-5.1.17-6.el6.noarch
mysql-libs-5.1.73-3.el6_5.x86_64
尝试以下操作:
...更好的是,使用
yum-config-manager
、禁用mysql57-community
和启用mysql56-community
,然后安装mysql-community-server
。我最后必须做的是:
yum update mysql-libs
使用安装的 升级 MySQL-libsmysql-community-libs
yum downgrade mysql-libs
,以便他们在 5.6.29