LinuxQuestions.org

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

linux_newb 08-02-2012 09:28 AM

/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
 
Hi Guys,

I'm running RHEL6 and Centos 6 and I get the following error

/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

on one of the programs I need to run on the system. I'm currently at gcc version 4.7.0. When i do the following command "strings /usr/lib/libstdc++.so.6 | grep GLIBCXX"

I get: so it looks like 3.4.15 is there. Any ideas on how I can correct this issue?

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

Satyaveer Arya 08-02-2012 10:13 AM

Hi,

GLIBCXX_3.4.15 file is in package gcc.
Try to extract the same file from the gcc package and again paste it in its particular location. It should work then.

linux_newb 08-02-2012 10:38 AM

Quote:

Originally Posted by Satyaveer Arya (Post 4744190)
Hi,

GLIBCXX_3.4.15 file is in package gcc.
Try to extract the same file from the gcc package and again paste it in its particular location. It should work then.


Do you mean reinstall the gcc rpm?

Satyaveer Arya 08-02-2012 11:08 AM

No, not to re-install the gcc package.
Just extract the gcc package and there would be a file "GLIBCXX_3.4.15" there. Paste that file at that location where all other such files are there.

knudfl 08-02-2012 11:11 AM

The "libstdc++-so.6" from gcc-4.7.0 should do OK.

? May be the libstdc++-so.6 in /usr/lib/ is the EL6 default ?
I.e the libstdc++.so.6 from gcc version 4.4.6 ?

A reinstall of gcc (-4.4.6) will not work.
Neither will a reinstall of libstdc++.
The object GLIBCXX_3.4.15 is from a gcc version 4.6 or later, I think.
Quote:

on one of the programs I need to run on the system
Which program ? ? And : Is the program in question the right architecture ?
( i686 or x86_64 )

.

linux_newb 08-02-2012 11:22 AM

Quote:

Originally Posted by knudfl (Post 4744237)
The "libstdc++-so.6" from gcc-4.7.0 should do OK.

? May be the libstdc++-so.6 in /usr/lib/ is the EL6 default ?
I.e the libstdc++.so.6 from gcc version 4.4.6 ?

A reinstall of gcc (-4.4.6) will not work.
Neither will a reinstall of libstdc++.
The object GLIBCXX_3.4.15 is from a gcc version 4.6 or later, I think.

Which program ? ? And : Is the program in question the right architecture ?
( i686 or x86_64 )

.

That is a lot of help! How do I install gcc-4.7.0? is it an rpm package or a tarball? The program is firefox.

knudfl 08-02-2012 11:57 AM

Your post # 1 says : ""I'm currently at gcc version 4.7.0.""
So I assumed, you had gcc-4.7.0 installed.

Firefox : Is it version 14 ?


Replacing libstdc++-so.6 with a later version that works in EL6:
Unpack libstdc++6_4.7.1-2_i386.deb
http://ftp.de.debian.org/debian/pool...7.1-2_i386.deb
with : ar -x libstdc++6_4.7.1-2_i386.deb && tar xvf data.tar.gz
Next : 1) su ; 2) cp libstdc++.so.6.0.17 /usr/lib/
3) cd /usr/lib/ && rm libstdc++.so.6
4) ln -s libstdc++.so.6.17 libstdc++.so.6

Reason for suggesting the Debian package :
It's a ( gcc ) libstdc++ version that's compiled with a glibc
old enugh to be used in EL6 / CentOS 6.

.

linux_newb 08-02-2012 11:59 AM

Quote:

Originally Posted by knudfl (Post 4744262)
Your post # 1 says : ""I'm currently at gcc version 4.7.0.""
So I assumed, you had gcc-4.7.0 installed.

Firefox : Is it version 14 ?


Replacing libstdc++-so.6 with a later version that works in EL6:
Unpack libstdc++6_4.7.1-2_i386.deb
http://ftp.de.debian.org/debian/pool...7.1-2_i386.deb
with : ar -x libstdc++6_4.7.1-2_i386.deb && tar xvf data.tar.gz
Next : 1) su ; 2) cp libstdc++.so.6.0.17 /usr/lib/
3) cd /usr/lib/ && rm libstdc++.so.6
4) ln -s libstdc++.so.6.17 libstdc++.so.6

.

Thank you so much! This has been great help. Yes it is FF 14. My system is at gcc 4.7 but I think I have a stock RHEL6 library lingering. The deb package will give me the correct libstdc++ you think?

Thanks again!

knudfl 08-02-2012 03:42 PM

The 32bits CentOS 6.3 :

Firefox 14.0.1 works OK here with libstdc++.so.6 -> libstdc++.so.6.17
from the package libstdc++6_4.7.1-2_i386.deb.


(You can of course also use the libstdc++.so.6.17 from your gcc-4.7 install.)


.


All times are GMT -5. The time now is 10:21 AM.