错误加载共享库时:libstdc ++。so.6:错误ELF类:ELFCLASS64 [英] error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64

查看:3455
本文介绍了错误加载共享库时:libstdc ++。so.6:错误ELF类:ELFCLASS64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的CentOS系统中安装Qt。在创建库时,我收到此错误:

I am trying to install Qt in my CentOS system. While building the library, I'm getting this error:

/root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
/root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64


推荐答案

似乎 libstdc ++。so.6 的软链接已改变,并指向 libstdc ++。so.6.0.13 (64位?)。我刚刚通过发出以下命令(在 / usr / lib 文件夹)更改了softlink:

It seems the softlink of the libstdc++.so.6 has been changed and is pointing to libstdc++.so.6.0.13 (64-bit?). I just changed the softlink by issuing the following command (in /usr/lib folder):

rm -f libstdc++.so.6
ln -s ./libstdc++.so.6.0.8 ./libstdc++.so.6

这篇关于错误加载共享库时:libstdc ++。so.6:错误ELF类:ELFCLASS64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆