LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-02-2012, 09:28 AM   #1
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Rep: Reputation: 15
/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
 
Old 08-02-2012, 10:13 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
Old 08-02-2012, 10:38 AM   #3
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Satyaveer Arya View Post
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?
 
Old 08-02-2012, 11:08 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
Old 08-02-2012, 11:11 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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 )

.

Last edited by knudfl; 08-02-2012 at 11:13 AM.
 
Old 08-02-2012, 11:22 AM   #6
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
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.
 
Old 08-02-2012, 11:57 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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.

.

Last edited by knudfl; 08-02-2012 at 12:01 PM.
 
Old 08-02-2012, 11:59 AM   #8
linux_newb
Member
 
Registered: Aug 2009
Distribution: Windows 7, RHEL 5.4, CENTOS 5.4, RHEL 6
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
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!
 
Old 08-02-2012, 03:42 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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.)


.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found IrishLinuxGirl Red Hat 4 08-18-2012 11:13 AM
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./example1) babu198649 Linux - Newbie 24 12-02-2010 04:09 AM
FC4 - /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.6' not found TBennettcc Fedora 0 11-01-2008 09:39 PM
"/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found" worked but stil confused babu198649 Linux - Newbie 2 03-24-2008 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration