libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Considering that /usr/lib/x86_64-linux-gnu/libproxy.so.1
is supplied by Ubuntu, let's assume that it is compatible with the system libstdc++ library. This means that the application is not actually using that system library, but some other version. I'd suggest to check if the application sets LD_LIBRARY_PATH
and if there is another copy of libstdc++.so.6
on that path. In this case, try moving it away or deleting it—the application should then switch to the system library, which is newer and should be backwards-compatible.
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
I'm compiling gcc 4.6 from source, and apparently
sudo make install
didn't catch this one. I dug around and found
gcc/trunk/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.15
I copied it in to /usr/lib and redirected libstdc++.so.6 to point to the new one, and now everything works.
Starting VS Code hangs with GLIBCXX_3.4.20 not found, Can I point to a libstdc++.so.6 in a non-standard location?
Per scroveez's suggestion, the /usr/lib64/libstdc++.so.6
was indeed a symlink to the older version. To fix it I copied the 'new' version 25 library into /usr/lib64/
and changed the symlink to point to the newer version.
$ ll /usr/lib/libstdc++.so.*
lrwxrwxrwx 1 root root 18 Apr 30 2019 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 739520 Nov 13 2014 /usr/lib/libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 19 Jul 6 08:56 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.25
-rwxr-xr-x 1 root root 934644 Mar 25 2020 /usr/lib/libstdc++.so.6.0.19
-rwxr-xr-x 1 root root 1570176 Jul 6 08:55 /usr/lib/libstdc++.so.6.0.25
$
Where can I find GLIBCXX_3.4.29?
After building GCC and installing the binaries, the softlink /usr/lib/x86_64-linux-gnu/libstdc++.so.6 wasn't updated to the latest version. Mine was still pointing to a previous version as mentioned in the comments above. Under GCC build directory I found the GLIBCXX_3.4.29 build directory and copied the library to /usr/lib/x86_64-linux-gnu and updated the softlink.
Related Topics
How to Put All Command Arguments in One Variable
Selinux Prevented Httpd(Usr/Sbin/Httpd) Write Access to /Var/Www/HTML/Bookings/Templates_C
The Behavior When a Gnu Make Phony Target Happens to Be The Same as a Directory Name
Bash Script for Executing Commands on Multiple Server
Bash Concurrent Jobs Gets Stuck
Using Awk to Get a Specific String in Line
Bash Script to Install Postgresql - Not Working
Spawn_Id: Spawn Id Exp6 Not Open
How to Make Webdriver Testsuite Created in Windows Machine to Run in a Linux Box
Restart Service from Cgi Script
How to Create a Folder with a Folder Name Containing Spaces in Linux
Why Do My Keystrokes Turn into Crazy Characters After I Dump a Bunch of Binary Data into My Terminal
Compiling Kernel Error: Stdio.H: No Such File or Directory
Golang Math Can Not Finished with My Code, But Python Is Ok
Save The Result of Ls Command in The Remote Sftp Server on Local Machine