解决centos8 中安装mysql5.7.26时 libtinfo.so.5()(64bit)被依赖的问题

libncurses.so.5 这些依赖呢都是放到/user/lib目录下的 进去看之后其实可以发现有很多 但是 安装mysql5.7.26的client端的时候 会一直报

警告:mysql-community-client-5.7.26-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
错误:依赖检测失败:
        libncurses.so.5()(64bit) 被 mysql-community-client-5.7.26-1.el7.x86_64 需要
        libtinfo.so.5()(64bit) 被 mysql-community-client-5.7.26-1.el7.x86_64 需要

这个其实是两种原因

  1. 第一种是系统中的确没有这个libtinfo.so.5()(64bit)这个包
  2. 第二种是系统中的这个libtinfo.so.5()(64bit)没有被检测到

所以尝试着用 ln -s libtinfo.so.5 /usr/lib/libncurses.so.5.9创建软链接在当前的 software目录下

[root@master software]# ln -s libtinfo.so.5 /usr/lib/libncurses.so.5.9

以为这样会找到 但是安装之后还是没有

dnf install ncurses-compat-libs

之后用这行命令 安装了 ncurses-compat-libs
在这里插入图片描述
安装之后呢 再尝试安装 mysql-community-client-5.7.26-1.el7.x86_64.rpm 和 mysql-community-server-5.7.26-1.el7.x86_64.rpm 这些的时候就直接可以安装好了

[root@master software]# rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
警告:mysql-community-client-5.7.26-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
Verifying...                          ################################# [100%]
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-client-5.7.26-1.e################################# [100%]
[root@master software]# rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm
警告:mysql-community-server-5.7.26-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY
Verifying...                          ################################# [100%]
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-server-5.7.26-1.e################################# [100%]
[/usr/lib/tmpfiles.d/libgpod.conf:1] Line references path below legacy directory /var/run/, updating /var/run/libgpod → /run                                      /libgpod; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/libstoragemgmt.conf:1] Line references path below legacy directory /var/run/, updating /var/run/lsm → /                                      run/lsm; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/libstoragemgmt.conf:2] Line references path below legacy directory /var/run/, updating /var/run/lsm/ipc                                       → /run/lsm/ipc; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mda                                      dm; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/mysql.conf:16] Line references path below legacy directory /var/run/, updating /var/run/mysqld → /run/m                                      ysqld; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/radvd.conf:1] Line references path below legacy directory /var/run/, updating /var/run/radvd → /run/rad                                      vd; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/spice-vdagentd.conf:2] Line references path below legacy directory /var/run/, updating /var/run/spice-v                                      dagentd → /run/spice-vdagentd; please update the tmpfiles.d/ drop-in file accordingly.
[root@master software]# mysqld --initialize
2020-01-12T03:08:18.202215Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_                                      for_timestamp server option (see documentation for more details).
2020-01-12T03:08:18.205248Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2020-01-12T03:08:18.205310Z 0 [ERROR] Aborting

使用mysql 正常
在这里插入图片描述

  • 45
    点赞
  • 53
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值