我一直试图在CentOS Linux release 7.3.1611上安装mysql-community-client-5.7.17-1.fc25.x86_64.rpm ,而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
那是因为你正在使用Fedora 25的一个版本,而你正在使用CentOS7。 我build议你下载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使用最新的版本。