缺少libstdc++.so.6库的原因及解决办法

问题原因:
系统是64bit,该库是32bit的,在64bit系统上安装32bit库


解决办法:
1. 查看哪个安装包包含该库:yum provides libstdc++.so.6
   yum install libstdc++-4.8.5-11.el7.i686

    [root@localhost cn_telecom_test_tool]# rpm -qa | grep libstdc
   libstdc++-4.8.5-4.el7.x86_64


2. 安装 libstdc++-4.4.7-4.el6.i686
    yum install libstdc++-4.8.5-11.el7.i686
   报错:
--> Finished Dependency Resolution
Error: Protected multilib versions: libstdc++-4.8.5-11.el7.i686 != libstdc++-4.8.5-4.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


    2.1 解决办法:
    yum update libstdc++-4.8.5-4.el7.x86_64
    然后再执行步骤2的命令

 

再查看 rpm -qa | grep libstdc

libstdc++-4.8.5-11.el7.x86_64
libstdc++-4.8.5-11.el7.i686

(转其他)

posted @ 2017-04-20 14:11  仙羡1118  阅读(3220)  评论(0编辑  收藏  举报