1

When I run the following command

sudo yum install -y ruby ruby-devel gcc xorg-x11-server-Xvfb google-chrome-stable

on a centos 6 server

I get the following error:

 Package: google-chrome-stable-51.0.2704.63-1.x86_64 (google-chrome)
           Requires: libstdc++.so.6(GLIBCXX_3.4.18)(64bit)

migrated from serverfault.com Jun 1 '16 at 17:52

This question came from our site for system and network administrators.

3

I guess you run into the problem that Google (and others) simply use more recent build systems which create backwards-incompatible binaries for systems like centos 6.

Determine what versions of GLIBCXX are supported on your maschine with e.g.:

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

Does GLIBCXX_3.4.18 show up?

[1] Read a full explanation on e.g. http://chrome.richardlloyd.org.uk/ and how to handle that situation.

  • Just to update, the site in the link is no more working. Also, the script no more works for versions 59+. The answer is no longer relevant. – Himesh Nandani Jun 4 '18 at 7:22
0

GLIBCXX means : G .. LIBC++ . ( Like CXX = g++ )

"gcc-4.8.x" : GLIBCXX_3.4.18 is an object in libstdc++.so.6 -> libstdc++.so.6.0.18 : Please see $ objdump -x /usr/lib64/libstdc++.so.6 | grep GLIBCXX_3.4

I don't think we can find a libstdc++.so.6.0.18 that is compiled with glibc-2.12 . Most gcc-4.8 are compiled with a much later glibc.

Solution : Build gcc-4.8.5, and you get a usable libstdc++.so.6.0.18.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy