[SOLVED] CentOs 6.3 GLIBCXX_3.4.15 not found error in QT5 install
-
hi , i want to install qt-linux-opensource-5.0.1-x86_64-offline.run , that i downloaded from http://qt-project.org/downloads
but when i run it from terminal that give me this error
@./qt-linux-opensource-5.0.1-x86_64-offline.run: /usr/lib64/libstdc++.so.6: version onGLIBCXX_3.4.15
not found ( required by qt-linux-opensource-5.0.1-x86_64-offline.run)@what i can do with this ?
ty@OS : CentOs6.3 , 64bit
QT : 5.0.1@ -
Oh, Centos again. This bug comes up after every release, for years. It's not a Qt bug to be honest.
Check out some posts "here":http://www.linuxquestions.org/questions/red-hat-31/lib-libstdc-so-6-version-`glibcxx_3-4-15-not-found-4175419985/, "here":http://stackoverflow.com/questions/5216399/usr-lib-libstdc-so-6-version-glibcxx-3-4-15-not-found, "here":http://superuser.com/questions/439705/skype-not-working-in-centos-6-2, and "here":http://www.centos.org/modules/newbb/viewtopic.php?topic_id=38584&forum=56.
-
finally i solved my problem after 3 days searching , i will write my solution maybe it will help for others ...
you need to compile GCC , this link is best guide for this "install guide":http://gcc.gnu.org/wiki/InstallingGCC
after this you must find libstdc++.so.6 file , for this you can use this code @locate libstdc++.so.6@but if i didnt find new libstdc++.so.6 , you have to update locate database by this command
@updatedb@when you find new libstdc++.so.6 , you have to replace this with /usr/lib64/libstdc++.so.6
do it with terminal because you cant see new libstdc++.so.6 directory in gui file manage , i dont know why ..and then test qt install file , your problem must be fixed ..
-
Cool, thank you for that guide.
-
There are also a couple of bugs about this topic
https://bugreports.qt-project.org/browse/QTBUG-28580
https://bugreports.qt-project.org/browse/QTBUG-29089 -
Just to be clear, all that is needed is the newly compiled version of the libstdc++.so.6 file rather than the entire new version of the compiler to build Qt from this run file?
Thanks.
-
Solution :
i am using CentOs 6.4 x64bit
I downloaded "gcc-4.6.2.tar.gz" from "ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-4.6.2"
[source of the below : "http://gcc.gnu.org/wiki/InstallingGCC":http://gcc.gnu.org/wiki/InstallingGCC]
@tar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make
make install@After this is done, go to "/opt/gcc-4.6.2/lib64" you will be able to see "libstdc++.so.6" and "libstdc++.so.6.0.16".
Rename "/usr/lib64/libstdc++.so.6" to "/usr/lib64/llibstdc++.so.6.backup"
copy "/opt/gcc-4.6.2/lib64/libstdc++.so.6" and "/opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16" to "usr/lib64/"
And now you can "./qt-linux-opensource-5.0.1-x86_64-offline.run"
You are free to go .... (i am currently using it)
-
Awesome. Thanks!
BTW: I'm getting this error on Mepis 11 x64 using the package libstdc++6-4.4-dev version 4.4.5-8
However, my original file looks like this:
@$ ll /usr/lib/libstd*
lrwxrwxrwx 1 root root 19 2010-11-25 11:21 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.13
-rw-r--r-- 1 root root 1043976 2010-11-14 21:03 /usr/lib/libstdc++.so.6.0.13
$@If I can get a good build of gcc (my build issue is not related to this thread), I'll give the above hints a shot.
Thanks again.