ls -l /lib/libc.so.*
The first number after the base name "libc.so." tells you the version of your libc. (libc.so.6.x is the same as glibc.)
To check your version of libg++, just check the version number of g++:
g++ -v
It should be either version 2.7.x or 2.8.x. You should have the corrosponding version of libg++ in /usr/lib.
You need at least the following versions (or newer) of libraries:
libc.so.5.4.26 (usually in /lib)If your versions are older, go to Linux Libraries for Blue.
libg++.so.2.7.2.1 (usually in /usr/lib)
libstdc++.so.27.2.1 (usually in /usr/lib)