tags:

views:

34

answers:

1

I am trying to install Qt in my CentOS pc. 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

+1  A: 

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

Christian