LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (https://www.linuxquestions.org/questions/red-hat-31/usr-lib-libstdc-so-6-version-%60glibcxx_3-4-11-not-found-943114/)

IrishLinuxGirl 05-03-2012 10:37 AM

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found
 
Hello,
I am getting tnhis error when making a project.

Code:

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found
I am using Redhat 5 enterprise.

My Glibc version is glibc-2.5-81.

Has anybody got any suggestions? I am fairly new to linux.

Thanks in advance.

knudfl 05-03-2012 11:08 AM

GLIBCXX_3.4.11 is an object in libstdc++.so.6.** from gcc-4.4.x.

The easy way is to make a backup of your /usr/lib/libstdc++.so.6.0.8,
and delete the link libstdc++.so.6 , and use a replacement that works
with your glibc : will usually be libstdc++.so.6.0.13 from the package libstdc++6_4.4.5-8_i386.deb ( 32bits )
http://ftp.de.debian.org/debian/pool...4.5-8_i386.deb
64bits http://ftp.de.debian.org/debian/pool....5-8_amd64.deb

Unpack with : ar -x <package>.deb && tar xvf data.tar.gz,
... and copy libstdc++.so.6.0.13 to /usr/lib/, and :
# ln -s libstdc++.so.6.0.13 libstdc++.so.6

Ref. http://packages.debian.org/squeeze/libstdc++6

.

IrishLinuxGirl 05-03-2012 11:28 AM

Thanks for the reply. Its a debian package? Will this work with RedHat?

knudfl 05-03-2012 11:59 AM

The suggestion is to unpack the package and use one file.

So you are actually not using the package.

And it doesn't really matter which Linux OS that was used
to compile the content of the package.

Could as well be a Suse SLE10 libstdc++44-4.4.2_20100116-28.1.i586.rpm
http://download.opensuse.org/reposit...E-10_SDK/i586/
But installing it as a package would conflict with the installed libstdc++.so.6.

( Some of the compilers in the above Suse link can be used on RHEL5.)

.

Cabelo do Mato 08-18-2012 11:13 AM

In my case, I just updated my gcc.

As Slackware user I used #slackpkg upgrade gcc

Plus, you can check what versions of the GCCLIB you currently have in the system with #strings /usr/lib/libstdc++.so.6 | grep GLIBCXX


All times are GMT -5. The time now is 04:41 AM.