/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Issues related to applications and software problems
Post Reply
goudeuk
Posts: 32
Joined: 2013/09/02 11:46:50
Location: London

/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Post by goudeuk » 2021/06/17 14:46:08

Hello everyone

I'm trying to run a program on my CentOS7 (el7.x86_64) machine but I get the message below:


/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found


Some have solved this problem by installing the latest libstdc++, however I already have the latest gllibc++ installed.

yum install libstdc++
Package libstdc++-4.8.5-44.el7.x86_64 already installed and latest version


Also, I can not see GLIBCXX_3.4.20 inside libstdc++.so.6.

Code: Select all

strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

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
GLIBCXX_DEBUG_MESSAGE_LENGTH
Does anyone know how I can resolve this?

Many thanks

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Post by TrevorH » 2021/06/17 14:47:46

Yes, get a package built for CentOS 7. This one is not as it needs a newer version of libstdc++ than we ship. That will not change so the other alternative is to change the package.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tunk
Posts: 1204
Joined: 2017/02/22 15:08:17

Re: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Post by tunk » 2021/06/17 16:03:46

Maybe not an alternative, but GLIBCXX_3.4.20+21 are in CentOS 8.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Post by jlehtone » 2021/06/18 07:45:26

tunk wrote:
2021/06/17 16:03:46
Maybe not an alternative, but GLIBCXX_3.4.20+21 are in CentOS 8.
The "program" sounds like a "binary blob" compiled in foreign platform, like Ubuntu. Perhaps a container with necessary bits for the program?

Post Reply