我试图使用RPM在64位Fedora 24上安装MySQL 5.6.33(最新的MySQL 5.7不适合我)。 服务器的安装顺利进行:
$ rpm -i MySQL-server-5.6.33-1.linux_glibc2.5.x86_64.rpm
然后我想安装客户端,但是出现了依赖性错误:
$ rpm -i MySQL-client-5.6.33-1.linux_glibc2.5.x86_64.rpm
warning: MySQL-client-5.6.33-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libncurses.so.5()(64bit) is needed by MySQL-client-5.6.33-1.linux_glibc2.5.x86_64
每个搜索结果都说我需要安装ncurses,所以我做了,但问题仍然存在。
$ dnf install ncurses-devel
Last metadata expiration check: 2:12:25 ago on Thu Sep 29 17:05:20 2016.
Package ncurses-devel-6.0-6.20160709.fc24.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
$ rpm -i MySQL-client-5.6.33-1.linux_glibc2.5.x86_64.rpm
warning: MySQL-client-5.6.33-1.linux_glibc2.5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libncurses.so.5()(64bit) is needed by MySQL-client-5.6.33-1.linux_glibc2.5.x86_64
答案 0 :(得分:0)
运行yum provides */libncurses.so.5
将显示libncurses的可用yum存储库。
输出如下所示
ncurses-compat-libs-6.0-8.20170212.amzn2.1.3.i686:Ncurses 兼容性库Repo:amzn2-core匹配于: 文件名:/usr/lib/libncurses.so.5
ncurses-compat-libs-6.0-8.20170212.amzn2.1.3.x86_64:Ncurses 兼容性库Repo:amzn2-core匹配于: 文件名:/usr/lib64/libncurses.so.5
根据操作系统的位版本,您可以选择软件包并按以下步骤安装。
yum -y install ncurses-compat-libs-6.1-7.20180224.el8.x86_64