执行命令出错:
error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64、
查看那个安装包有这个库文件
# yum whatprovides libstdc++.so.6
看到是libstdc++-4.4.7-16.el6.i686
安装该包
# yum install libstdc++-4.4.7-16.el6.i686
报错:
Protected multilib version: libgcc-4.4.7-16.el6.i686 != libgcc-4.4.7-17.el6.x86_64
# yum remove libgcc-4.4.7-17.el6.x86_64
# yum install libstdc++-4.4.7-16.el6.i686
报错:
libgcc_s.so.1: cannot open shared object file: No such file or directory
找一台64位系统的服务器,拷贝/lib64/libgcc_s.so.1到本服务器的/lib64目录下
再次安装成功
# yum install libstdc++-4.4.7-16.el6.i686
转载于:https://blog.51cto.com/xiaoxiaozhou/2157206