PDA

View Full Version : Error while installing QT5



vidh
29th April 2013, 02:15
Hi,

I am newbie trying to learn QT.
I have issues installing QT5.

Steps followed to install Qt are

1) I tried to install QT5 using ./qt-linux-opensource-5.0.2-x86_64-offline.run and I get the below error:

Error: ./qt-linux-opensource-5.0.2-x86_64-offline.run : /usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.15' not found ( required by ./qt-linux-opensource-5.0.2-x86_64-offline.run)

2) I checked the gcc version installed : it was gcc version 4.4.7 (Red Hat 4.4.7-3) (GCC)

3) Output of strings /usr/lib/libstdc++.so.6 | grep GLIBCXX_3.4 shows GLIBCXX_3.4 to GLIBCXX_3.4.13 but not GLIBCXX_3.4.15

4) So when I try to install GCC higher version (gcc 4.7) using ./configure , I get dependency errors. GMP, MFPR and MPC required.

Kindly advice on how to proceed and succesfully install QT5 in my RedHat Linux machine.

Thanks & Regards,
Vidh

ChrisW67
29th April 2013, 03:50
Install the dependencies for your compiler if you need to upgrade it.

saman_artorious
29th April 2013, 07:43
Error: ./qt-linux-opensource-5.0.2-x86_64-offline.run : /usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.15' not found ( required by ./qt-linux-opensource-5.0.2-x86_64-offline.run)



apt-get install ia32-libs

ChrisW67
29th April 2013, 08:40
Is installing 32 bit compatibility libs going to help with a 64-bit install of Qt?

saman_artorious
29th April 2013, 10:09
For a case of 64-bit, he may try installing the required version of it.
but, Either your version is not new enough or the newest version of libstdc++.so.6 cannot be found on your system. You may try upgrading the GCC as Chris said. But, if it didn't work out, do set the environment path. Not found does not necessarily mean the library is not installed.