LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2015, 04:19 AM   #1
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Rep: Reputation: 15
Unhappy Searching for GLIBCXX_3.4.20


Hello,

I want to run a program on my rhel, but seems it's missing some glibc.

About the server:
Code:
[root@xxx bin]# uname -a
Linux telesto 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@xxx bin]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Bug from the app:
Code:
[root@xxx bin]# ./vcp 
./vcp: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./vcp)
I check in the libstdc lib:
Code:
[root@xxx MBT]# strings /usr/lib/libstdc++.so.6 | grep GLIBC
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_3.4.18
GLIBCXX_3.4.19
GLIBC_2.3
GLIBC_2.0
GLIBC_2.4
GLIBC_2.1
GLIBC_2.1.3
GLIBC_2.3.2
GLIBC_2.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
glic from rpm:
Code:
[root@xxx bin]# rpm -q glibc
glibc-2.17-78.el7.x86_64
glibc-2.17-78.el7.i686
[root@telesto bin]# rpm -qa glibc-devel
glibc-devel-2.17-78.el7.x86_64
This server isn't connected to the internet, and I want to know which package should I install to get the GLIBCXX_3.4.20.


Thanks!
 
Old 09-02-2015, 06:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Not "glibc" : G..LIBCXX.. means "gnu libc++", which we know as libstdc++, a gcc library.

GLIBCXX_3.4.20 is an object from the gcc-4.9.x libstdc++.so.6.0.20

The trick is to find a libstdc++-4.9.x, which is compiled with <=glibc-2.17 :

Found http://rpm.pbone.net/index.php3/stat...86_64.rpm.html
>>> ftp://ftp.pbone.net/mirror/ftp.sourc....99.x86_64.rpm
>> gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm

Unpack the package in a new folder :
$ rpm2cpio gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm | cpio -idmv
... and copy libstdc++.so.6.0.20 to /usr/lib64/
Next : 1) $ cd /usr/lib64/
2) # rm libstdc++.so.6
3) # ln -s libstdc++.so.6.0.20 libstdc++.so.6
... and you can use applications requiring "GLIBCXX_3.4.20".
( Tested OK on one of my CentOS 7 installs.)


-

Last edited by knudfl; 09-02-2015 at 07:26 AM.
 
1 members found this post helpful.
Old 09-03-2015, 04:59 AM   #3
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Not "glibc" : G..LIBCXX.. means "gnu libc++", which we know as libstdc++, a gcc library.

GLIBCXX_3.4.20 is an object from the gcc-4.9.x libstdc++.so.6.0.20

The trick is to find a libstdc++-4.9.x, which is compiled with <=glibc-2.17 :

Found http://rpm.pbone.net/index.php3/stat...86_64.rpm.html
>>> ftp://ftp.pbone.net/mirror/ftp.sourc....99.x86_64.rpm
>> gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm

Unpack the package in a new folder :
$ rpm2cpio gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm | cpio -idmv
... and copy libstdc++.so.6.0.20 to /usr/lib64/
Next : 1) $ cd /usr/lib64/
2) # rm libstdc++.so.6
3) # ln -s libstdc++.so.6.0.20 libstdc++.so.6
... and you can use applications requiring "GLIBCXX_3.4.20".
( Tested OK on one of my CentOS 7 installs.)
Just tried it, and it's working perfectly.

Thanks a lot for your help :-)
 
  


Reply

Tags
glibc, glibcxx, glibcxx_3.4.20, libstdc++, rhel


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
How to install GLIBCXX_3.4.14 CentOS 6.5 Skillz Linux - Software 2 04-08-2014 12:24 AM
glibcxx_3.4.9 NOT FOUND RHEL mccartjd Linux - Newbie 2 01-24-2012 05:01 AM
[SOLVED] `GLIBCXX_3.4.9' not found infcem Linux - Software 3 06-02-2010 11:20 AM
getting GLIBCXX_3.4.9 on redhat distro dsollen Linux - Newbie 6 09-30-2009 10:44 AM
GLIBCXX_3.4.9 for CentOS? Fnatte Linux - Newbie 0 06-22-2009 11:14 AM


All times are GMT -5. The time now is 08:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration