/usr/lib64/libstdc++.so.6: version of `GLIBCXX_3.4.15 'not found

I am trying to run appium tests. However, I get the error message:

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

I am using RedHat6.6. When I run:

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

I get this:

 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 GLIBC_2.0 GLIBC_2.3 GLIBC_2.4 GLIBC_2.1 GLIBC_2.1.3 GLIBC_2.3.2 GLIBC_2.2 GLIBCXX_FORCE_NEW GLIBCXX_DEBUG_MESSAGE_LENGTH 

Is it possible to get GLIBCXX_3.4.15 for RedHat6.6?

+4
source share
3 answers

It seems that your libstdc++.so.6 too old for your program, you can try to upgrade you libstdc++.so In my centos7 my libstdc++.so.6 is linked to libstdc++.so.6.0.19

 libstdc++.so.6 -> libstdc++.so.6.0.19 

It has lines

 [root]#strings 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.2.5 GLIBC_2.14 GLIBC_2.4 GLIBC_2.3.2 GLIBCXX_DEBUG_MESSAGE_LENGTH 

You might be able to download a newer version and reuse libstdc++.so.6 , but you should take care that other programs on your system still work well.

Update this library, you have to be careful, new problems may arise, I replaced libc.so.6 , then all the commands cannot work, I used /sbin/sln fix it. See glibc: elf OS ABI file is invalid


Download libstdC ++ from pkgs.org , then unzip it.

 rpm2cpio libstdc++-4.9.2-1.fc21.x86_64.rpm |cpio -idmv cp ./usr/lib64/libstdc++.so.6.0.20 /usr/lib64 

Perhaps you can use LD_PRELOAD=/usr/lib64/libstdc++.so.6.0.20 before executing your program. Like this

 LD_PRELOAD=/usr/lib64/libstdc++.so.6.0.20 ls -hl 

Or export LD_LIBRARY_PATH=/usr/lib64/libstdc++.so.6.0.20 , but I'm not sure if this will work.

If you reconnect libstdc++.so.6 , be careful.

+4
source

Replace the libstdc ++ file. so.6 new, which includes GLIBCXX_3.4.15

+1
source

Go to \node_modules\electron\dist and paste all the necessary libraries there that will keep you safe from stealing your system

if you get undefined g_bytes ref error

Then download https://jlison.imtqy.com/bin/centos6/soichih/mirror/gcc-4.7.2.tar.gz and add it to some folder and update LD_LIBRARY_PATH glibpath = / opt / glib / (path, where did you get glib)

export LD_LIBRARY_PATH = $ glibpath / glib-2.49.4-kgesagxmtbemim2denf65on4iixy3miy / lib: $ LD_LIBRARY_PATH

export LD_LIBRARY_PATH = $ glibpath / libffi-3.2.1-wk2luzhfdpbievnqqtu24pi774esyqye / lib64: $ LD_LIBRARY_PATH

export LD_LIBRARY_PATH = $ glibpath / pcre-8.39-itdbuzevbtzqeqrvna47wstwczud67wx / lib: $ LD_LIBRARY_PATH

export LD_LIBRARY_PATH = $ glibpath / gettext-0.19.8.1-aoweyaoufujdlobl7dphb2gdrhuhikil / lib: $ LD_LIBRARY_PATH

+1
source

Source: https://habr.com/ru/post/1268262/


All Articles