在OS Oracle Linux 6.9上安装mysql 57:错误:包

时间:2017-09-18 04:26:06

标签: mysql linux

在OS Oracle Linux上

Oracle Linux Server release 6.9
NAME="Oracle Linux Server"
VERSION="6.9"
ID="ol"
VERSION_ID="6.9"
PRETTY_NAME="Oracle Linux Server 6.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:6:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 6"
ORACLE_BUGZILLA_PRODUCT_VERSION=6.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=6.9
Red Hat Enterprise Linux Server release 6.9 (Santiago)
Oracle Linux Server release 6.9

我尝试安装,运行以下命令的MySQL社区服务器5.7:

$ yum install https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
$ sudo rpm -ivh mysql57-community-release-el6-11.noarch.rpm
$ yum install mysql-community-server

它返回了以下错误:

  

错误:包:mysql-community-client-5.7.19-1.el7.x86_64(mysql57-community)                  需要:libc.so.6(GLIBC_2.14)(64位)       错误:包:perl-DBD-MySQL-4.013-3.el6.x86_64(@ public_ol6_latest)                  需要:libmysqlclient.so.16(libmysqlclient_16)(64位)                  正在删除:mysql-libs-5.1.73-8.0.1.el6_8.x86_64(@ public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  废弃的:mysql-community-libs-5.7.19-1.el7.x86_64(mysql57-community)                      未找到                  可用:mysql-libs-5.1.47-4.el6.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.52-1.el6_0.1.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.61-1.el6_2.1.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.61-4.el6.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.66-1.el6_3.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.66-2.el6_3.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.67-1.el6_3.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.69-1.el6_4.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.71-1.el6.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.73-3.el6_5.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.73-5.el6_6.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.73-5.el6_7.1.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)                  可用:mysql-libs-5.1.73-7.el6.x86_64(public_ol6_latest)                      libmysqlclient.so.16(libmysqlclient_16)(64位)       错误:包:mysql-community-server-5.7.19-1.el7.x86_64(mysql57-community)                  需要:libsasl2.so.3()(64位)       错误:包:mysql-community-server-5.7.19-1.el7.x86_64(mysql57-community)                  需要:systemd

如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

您需要查找并安装提供缺少库的软件包。您可以使用yum whatprovides来实现此目的:

yum whatprovides */glibc.so.6
yum whatprovides */libmysqlclient.so.16
yum whatprovides */libsasl2.so.3

如果上述命令找到任何包,则安装它们。如果没有,那么你将不得不调查在哪里找到它们。请注意,这可能非常具有挑战性