mysql 登陆报错

执行命令:mysql -u root -pmysql

错误:error while loading shared libraries: libncurses.so.5: cannot open shared object filec++

分析:缺乏 libncurses.so.5sql

解决方案:centos

yum install  libncurses.so.5ide

另一个方案参考博客:解决CentOS缺乏共享库:libstdc++.so.6rest

当在CentOS 6.2下执行某些命令时,有缺乏共享库的报错:
 
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory博客

解决办法:
 一、执行命令: yum whatprovides libstdc++.so.6
 
而后会提示哪一个安装包有这个库文件以下:
 
[root@localhost ~]# yum whatprovides libstdc++.so.6
 Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify,
              : versionlock
 Loading support for CentOS kernel ABI
 Loading mirror speeds from cached hostfile
  * base: centos.ustc.edu.cn
  * centosplus: centos.ustc.edu.cn
  * contrib: centos.ustc.edu.cn
  * extras: centos.ustc.edu.cn
  * updates: centos.ustc.edu.cn
 libstdc++-4.4.7-3.el6.i686 : GNU Standard C++ Library
 Repo        : base
 Matched from:
 Other      : libstdc++.so.6it

二、而后执行:
 
yum install libstdc++-4.4.7-3.el6.i686io

相关文章
相关标签/搜索