我正在尝试在我的CentOS系统中安装Qt。在构建库时,出现此错误:

/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的软链接(soft link)已更改,并指向libstdc++.so.6.0.13(64位?)。我只是通过发出以下命令(在/usr/lib文件夹中)更改了软链接(soft link):

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

07-28 01:26
查看更多