install Qt5 on CentOS 6.4 and fix GLIBCXX_3.4.15 not found error in QT5 install

Posted: November 15, 2013 in FX Pipeline, Linux

qt-main

install Qt5 on CentOS 6.4 and fix GLIBCXX_3.4.15 not found error in QT5 install

download online installer from : http://download.qt-project.org/official_releases/online_installers/1.4/qt-linux-opensource-1.4.0-2-x86_64-online.run

execute this run file as root

this will download and install qt5 in your system

But when you start Qt5 application this Error will come in centos

[rajiv@elitebook ~]$ cd /opt/Qt5/Tools/QtCreator/bin
[rajiv@elitebook bin]$ ./qtcreator
Failed to load core: /opt/Qt5/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load library /opt/Qt5/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: (/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found (required by /opt/Qt5/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))

 

To Fix This Error:-

You need to install the glibc-devel package

yum -y install glibc-devel.i686 glibc-devel

download gcc4.6.2 from : http://ftp.gnu.org/gnu/gcc/gcc-4.6.2/gcc-4.6.2.tar.gz

Go to Terminal as root

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

mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.backup

cp /opt/gcc-4.6.2/lib64/libstdc++.so.6 /usr/lib64

cp /opt/gcc-4.6.2/lib64/libstdc++.so.6.0.16 /usr/lib64

 

Advertisements
Comments
  1. Yi says:

    Thanks for your cool guide.
    It would be better if you correct ‘-prefix’ to ‘–prefix’. 🙂

  2. sasa says:

    Ok! It very interesing when I have online internet…

    “./contrib/download_prerequisites” – what I must
    duing? …What to copy & install when I offline???
    I open this file and download three pack others pc!
    And after I have problem with $PWD and “.” ,”..”,”-“!
    But I like this gude… Thanks BEST for your! Thanks!

    I use CentOS 6.5 x64.
    ftp://195.220.108.108/linux/centos/6.5/os/x86_64/Packages/glibc-devel-2.12-1.132.el6.i686.rpm
    and next +- on this gude…

  3. mettabud says:

    great tutorial, thanks

  4. Poulabi Patra says:

    Thanks… It works.

  5. Thiru says:

    Thanks Rajiv..it’s perfect..just done with my 12 hour struggle..

  6. nharder says:

    Great post, I was shocked when every step worked like magic and QT Creator ran with no issues on CentOS 6.5. Thanks!

  7. Andrey says:

    Works for me, great) Thanks from Russia)

  8. SriYank Gss says:

    How much time it takes?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s