zoukankan      html  css  js  c++  java
  • mysql 登录报错

    执行命令:mysql -u root -p

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

    分析:缺少 libncurses.so.5

    解决方案:

    yum install  libncurses.so.5

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

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

    解决办法:
     1、执行命令: 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.6

    2、然后执行:
     
    yum install libstdc++-4.4.7-3.el6.i686

  • 相关阅读:
    C#dll中无法找到c++dll中函数的入口
    C#委托及事件处理机制浅析
    lib和dll的例子
    C#中自定义消息,与MFc对比
    MFC消息响应机制 q
    MFC中消息响应机制
    C# 消息处理机制及自定义过滤方式
    c++中__declspec用法总结
    C++中使用接口
    C# 位域[flags] 转
  • 原文地址:https://www.cnblogs.com/recall-lonely/p/11769192.html
Copyright © 2011-2022 走看看