我一直试图安装mysql-community-client-5.7.17-1.fc25.x86_64.rpm
,CentOS Linux release 7.3.1611
但 RPM 抱怨libncurses.so.6()(64bit)
rpm -Uvh mysql-community-client-5.7.17-1.fc25.x86_64.rpm
warning: mysql-community-client-5.7.17-1.fc25.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libncurses.so.6()(64bit) is needed by mysql-community-client-5.7.17-1.fc25.x86_64
libstdc++.so.6(GLIBCXX_3.4.20)(64bit) is needed by mysql-community-client-5.7.17-1.fc25.x86_64
libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed by mysql-community-client-5.7.17-1.fc25.x86_64
libtinfo.so.6()(64bit) is needed by mysql-community-client-5.7.17-1.fc25.x86_64
-
CentOS Linux release 7.3.1611 (Core)
Derived from Red Hat Enterprise Linux 7.3 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.3.1611 (Core)
CentOS Linux release 7.3.1611 (Core)
cpe:/o:centos:centos:7
答案1
这是因为您在使用 Fedora 25 版本,而您正在使用 CentOS7。我建议您下载 RHEL 版本。要设置所有内容,您需要下载:
mysql-community-client-5.7.17-1.el7.x86_64.rpm
mysql-community-common-5.7.17-1.el7.x86_64.rpm
mysql-community-libs-5.7.17-1.el7.x86_64.rpm
mysql-community-server-5.7.17-1.el7.x86_64.rpm
首先安装common
,然后libs
,然后client
等等。
CentOS/RHEL 使用stable
软件包,而 Fedora 使用最新版本。