Error loading shared libraries: libstdc ++. so.6: invalid ELF class: ELFCLASS64

I am trying to install Qt on my CentOS system. When creating the library, I get 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 
+6
c ++ qt std libstdc ++ qmake
source share
2 answers

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

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

I had a problem running executable files compiled with g ++ when installing 64-bit ubuntu 14.04.

I installed g ++ - multilib and now everything works fine

 sudo apt-get install g++-multilib 
+3
source share

All Articles