NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
GLIBXCC_3.4.9 not found after compiling somethingI did a fresh install of Debian 4.0 and have only been using aptitude to add any standard packages that are available. I obtained the OpenFOAM package (www.OpenFOAM.org) and eventually got to the point where I was able to successfully compile its source code without any errors. However, when I try to run it I get: /usr/lib/libstdc++.so.6 : 'GLIBCXX_3.4.9' not found. If you google this you will get lots of references to it (though few insights as to how to fix it). I did a package search and GLIBCXX does not seem to be part of Debian. The best I could deduce from one post is that this is problem with the GCC compiler that ships with Debian and the way to fix it is to rebuild the compiler from source? Arg I cant do that! That cant be the problem? Im no linux expert. Please help!! |
GLIBXCC_3.4.9 not found
I did not download and install the latest GCC version from the OpenFOAM web site since the Debain one should be close enough.
If you recompile the whoe package and it links fine, how can it have an unresolved error like this?
GLIBXCC_3.4.9 not found
Did you actually install a "libstdc++"? It is possible to install only the "-dev" (headers) and compile, in which case your software won't run because the actual libraries are missing.
apt-cache search "libstdc++6"
GLIBXCC_3.4.9 not found
According to various programs I do have libstdc++6 installed (4.1.1-21) as well as the development static libraries. But I still get the error.
Does this mean somehow old compiled code is being linked in that needs to be compiled? How can I tell? Does gcc generate a map file? Is there a "depends" program for linux?
GLIBXCC_3.4.9 not found
To check the dependencies of a binary file, use 'ldd':
ldd /bin/bash
I've seen similar problems before, but in my case it's either been a reference to a nonexistent symlink or some library dependency that I forgot to install. With the symlinks for example, most programs will be linked to libblah.so, and that will be a symlink to libblah.so.MajorRev which in turn is a link to libblah.so.Major.Minor. Sometimes the link 'libblah.so' doesn't exist. Normally this is not a problem when you use a '.config' script to build because the actual libraries need to be installed beforehand or else parts of the configuration test fail. Odds are you still have a misplaced or missing library - you didn't build and hand-install any libraries, did you?