Install error - missing dependencies on Oracle linux 5 for Qt 5.2 and 5.0.2
-
I attempted to install Qt 5.2 and encountered errors for missing dependencies. The errors are the same when I attempt to install Qt 5.0.2. Here is a snippet of error messages:
[root@localhost stuff]# chmod +x qt-linux-opensource-5.0.2-x86-offline.run
[root@localhost stuff]# ./qt-linux-opensource-5.0.2-x86-offline.run
./qt-linux-opensource-5.0.2-x86-offline.run: /usr/lib/libstdc++.so.6: versionGLIBCXX_3.4.9' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run) ./qt-linux-opensource-5.0.2-x86-offline.run: /usr/lib/libstdc++.so.6: version
GLIBCXX_3.4.11' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run)
./qt-linux-opensource-5.0.2-x86-offline.run: /usr/lib/libstdc++.so.6: versionGLIBCXX_3.4.15' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run) ./qt-linux-opensource-5.0.2-x86-offline.run: /lib/libc.so.6: version
GLIBC_2.9' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run)
./qt-linux-opensource-5.0.2-x86-offline.run: /lib/libc.so.6: versionGLIBC_2.10' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run) ./qt-linux-opensource-5.0.2-x86-offline.run: /lib/libc.so.6: version
GLIBC_2.11' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run)
./qt-linux-opensource-5.0.2-x86-offline.run: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./qt-linux-opensource-5.0.2-x86-offline.run)
[root@localhost stuff]#here is the output of 'uname -a'
[root@localhost stuff]# uname -a
Linux localhost.localdomain 2.6.18-194.17.1.0.1.el5 #1 SMP Wed Sep 29 15:40:03 EDT 2010 i686 i686 i386 GNU/Linux
[root@localhost stuff]#==========================
The 'missing library' appears to be available --
[root@localhost stuff]# ls -hl /usr/lib/libstdc++*
-rwxr-xr-x 1 root root 256K Jun 4 2007 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 31 Apr 5 2010 /usr/lib/libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 18 Apr 5 2010 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 716K Jun 5 2007 /usr/lib/libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 18 Apr 15 2010 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.8
-rwxr-xr-x 1 root root 915K Feb 16 2010 /usr/lib/libstdc++.so.6.0.8
[root@localhost stuff]#Would you please advise on how to correct this?
Sincerely,
VictorSQL
-
Hi and welcome to devnet,
That lib is indeed present but not the right version. Looking at the kernel version you seem to use a pretty old linux distribution. So you have basically two choices:
Build Qt yourself
Update your distribution
For point 1, you also have to check that your compiler is recent enough
As a side note, don't use the root account for development. It's a very bad idea.