[root@VM-16-2-centos mysql]# rpm -ivh mysql-community-client-5.7.34-1.el7.x86_64.rpm warning: mysql-community-client-5.7.34-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: libncurses.so.5()(64bit) is needed by mysql-community-client-5.7.34-1.el7.x86_64 libtinfo.so.5()(64bit) is needed by mysql-community-client-5.7.34-1.el7.x86_64
时间: 2023-08-11 16:08:27 浏览: 504
这个错误提示是因为安装 MySQL 客户端缺少 libncurses.so.5()(64bit) 和 libtinfo.so.5()(64bit) 这两个依赖库。你可以尝试通过以下命令安装这两个依赖库:
```
sudo yum install ncurses-compat-libs
```
如果上述命令无法安装成功,你可以考虑安装 epel-release 仓库,然后再安装依赖库。具体步骤如下:
```
sudo yum install epel-release
sudo yum install ncurses-compat-libs
```
安装完依赖库后,再重新执行安装 MySQL 客户端的命令即可。
阅读全文