Tag Archives: Red Hat linux /usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.9′ not found (required by

GLIBCXX_3.4.9 not found in Red Hat/Fedora/CentOS linux

So you’re trying to run an application on Red Hat 5.x or CentOS or some other linux OS and are getting a library error like this:

[your_application]: /usr/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by [your_application])

Basically the application you are trying to run was compiled using a different libstdc++ library than the one installed on your system. I’ve seen this problem when trying to run certain versions of Firefox and some versions of the Google Earth Client software on various linux systems.

You can fix this “`GLIBCXX_3.4.9′ not found” error by installing the library that the application is looking for directly in its working directory.

Here are the steps I took to fix the problem on one particular linux OS install, your results may vary depending on the library your application is looking for and the configuration of your system.

1. Download (burn to CD if you are working on a standalone system) the Fedora 9 package of libstdc++-4.3.0-8.i386.rpm from the following link:

http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/libstdc++-4.3.0-8.i386.rpm

2. Copy the package file from the CD to your application working directory:

cp /media/libstdc++-4.3.0-8.i386.rpm [your_application_working_directory]

3. Unpack the package in the directory where your application is installed:

[your_application_working_directory]$ rpm2cpio libstdc++-4.3.0-8.i386.rpm | cpio -i --make-directories

4. Move the library and its link so that it resides directly in your application working directory:

[your_application_working_directory]$ mv usr/lib/libstdc++.so.6* .

[NOTE: this path is RELATIVE — it has no leading slash.]

5. Run your application and test:

./your_application

Good luck and if you can’t find the specific library you need try checking the Fedora package repository here for i386 packages:

http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages

 

tux-drawn-by-larry-ewing
Larry Ewing’s Linux mascot “Tux” as drawn in 1996