环境:ubuntu18

登陆MYSQL时遇到错误:mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

解决,查看MYSQL的依赖

$ ldd mysql
libtinfo.so.5 => not found
1
2
查看依赖是否存在

$ ls /lib/x86_64-linux-gnu/libtinfo.so.*
1
如果不存在,则去一个好的ubunu中复制一个libtinfo.so.5,并放入 /lib/x86_64-linux-gnu 目录下:

$ locate libtinfo.so.5 # 或者直接定位看linux中有没有然后复制一个就可以了

ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5

ln -s /usr/lib/libncurses.so.5 /lib/libtinfo.so.5  
---------------------

就可以了

备注:libtinfo.so.5 百度云:https://pan.baidu.com/s/1SFza-Fa2-CVQh955XsJsZA
备注:查看MYSQL的依赖

$ cd /usr/local/mysql/bin
$ ldd mysql
linux-vdso.so.1 (0x00007ffc9bffc000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5f948b4000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5f948aa000)
libssl.so.1.0.0 => /usr/local/mysql_8.0.13/bin/./libssl.so.1.0.0 (0x00007f5f9463a000)
libcrypto.so.1.0.0 => /usr/local/mysql_8.0.13/bin/./libcrypto.so.1.0.0 (0x00007f5f94203000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5f941fd000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f5f93fd3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5f93e47000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5f93cba000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5f93ca0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5f93ab6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5f948ea000)

参考:http://blog.chinaunix.net/uid-24532607-id-2778601.html
---------------------
作者:Ocean&&Star
来源:CSDN
原文:https://blog.csdn.net/zhizhengguan/article/details/86686621
版权声明:本文为博主原创文章,转载请附上博文链接!

MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f的更多相关文章

  1. linux安装MySQL报 error while loading shared libraries: libtinfo.so.5 解决办法

    MySQL服务启动报错 error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No ...

  2. mysql初始化/usr/local/mysql/bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

    [root@test153 ~]# /usr/local/mysql/bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql - ...

  3. ARM64架构下登录mysql出错:mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file:

    Linux下登录mysql出错:mysql: error while loading shared libraries: libncurses.so.5: cannot open shared obj ...

  4. error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

    zabbix3.2启动有如下报错: # service zabbix_server startStarting zabbix_server:  /home/zabbix-server/sbin/zab ...

  5. mysql-xtrabackup备份sh: xtrabackup_56: command not found与error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory

    sh: xtrabackup_56: command not foundinnobackupex: fatal error: no 'mysqld' group in MySQL options解决办 ...

  6. 报错:/application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

    启动zabbix_server时报错: /application/zabbix/sbin/zabbix_server: error while loading shared libraries: li ...

  7. gm: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory

    安装gm库产生问题 解决方案: # cat /etc/ld.so.confinclude ld.so.conf.d/*.conf# echo "/usr/local/lib" &g ...

  8. 解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误

    解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误 今天安装启动nginx的时候报 ...

  9. 错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

    执行以下代码,生成唯一的UID $fp = popen("/xxx/bin/tools/uuidgen system", "r");// $uid = frea ...

随机推荐

  1. LinkedHashMap实现LRU缓存算法

    LinkedHashMap的get()方法除了返回元素之外还可以把被访问的元素放到链表的底端,这样一来每次顶端的元素就是remove的元素. 构造函数如下: public LinkedHashMap  ...

  2. Axure8破解码

    升级了 8.0.0.3321 版本后,原来的 license 失效了,解决方法就是使用下面的这组注册码 License:米 业成 (STUDENT)Key:nFmqBBvEqdvbiUjy8NZiyW ...

  3. icon图标制作网站推荐

    推荐链接 easyicon

  4. Xml的转义字符--约束-xml解析器

    XML解析器:Dom适合增删改查(crud),缺点就是内存消耗大:  Sax:内存消耗非常小,解析速度快,但是不适合增删改:

  5. 主线程中的Looper.loop()一直无限循环为什么不会造成ANR

    待归纳 https://www.jianshu.com/p/cfe50b8b0a41 https://blog.csdn.net/cjh94520/article/details/71022883 那 ...

  6. RabbitMQ简单应用の消息持久化

    消息应答: 消息应答默认是打开的(false) boolean autoAck = true;自动确认模式,表示一旦MQ将消息给到消费者,就会从内存中删除该条消息,这种情况下,如果杀死正在执行的消费者 ...

  7. 动态规划 - 213. House Robber II

    URL: https://leetcode.com/problems/house-robber-ii/ You are a professional robber planning to rob ho ...

  8. Centos7.5 VMtools的安装与卸载

    一.安装 1.自带tools:  选择VMware工具栏 => 虚拟机 => 安装VMtools 2.挂载光驱 3.tar -zxvf VMwareTools-10.3.2-9925305 ...

  9. Python内建函数-callable

    Python内建函数-callable callable(object) 中文说明:检查对象object是否可调用.如果返回True,object仍然可能调用失败:但如果返回False,调用对象ojb ...

  10. Shell-find . -type f -name "*.log" -print0 | xargs -0 rm -f

    用 rm 删除太多的文件时候,可能得到一个错误信息:/bin/rm Argument list too long.