Installing libstdc++6 and gcc-9 helped me. Hope it will help you too.

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9
sudo apt install libstdc++6
Answer from WesternGun on askubuntu.com
Discussions

c++ - How to fix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found - Stack Overflow
I'm compiling a shared library .so in Ubuntu 32 bit (Have tried doing it under Debian and Ubuntu 64 bit, but none worked either) I keep getting: /usr/lib/libstdc++.so.6: version ``GLIBCXX_3.4.15' not More on stackoverflow.com
🌐 stackoverflow.com
libstdc++.so.6: version 'GLIBCXX_3.4.26' not found, even though I do have it
But when i run strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC in the /snap/core/current/usr/lib/x86_64-linux-gnu directory Maybe this is just my ignorance about how Snaps work... but why would you run strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6? Surely you want to check /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ... you know, the filename that's actually in the error message. More on reddit.com
🌐 r/linuxquestions
4
1
May 25, 2021
Ubuntu 18.04 LTS - version 'GLIBCXX_3.4.26' not found
Ledger Live Version and Operating System tested on Ledger Live 2.30.0 (ledger-live-desktop-2.30.0-linux-x86_64.AppImage) Platform and version: Ubuntu 18.04 LTS Expected behavior Successful applicat... More on github.com
🌐 github.com
13
July 14, 2021
How to manually select the libstdc++ library to use to resolve a "version 'GLIBCXX_#.#.##' not found" error?
How to manually select the libstdc++ library to... Learn more about libstdc++, glibcxx MATLAB Coder More on mathworks.com
🌐 mathworks.com
2
1
January 19, 2023
🌐
Reddit
reddit.com › r/linuxquestions › libstdc++.so.6: version 'glibcxx_3.4.26' not found, even though i do have it
r/linuxquestions on Reddit: libstdc++.so.6: version 'GLIBCXX_3.4.26' not found, even though I do have it
May 25, 2021 -

I am trying the test network from Hyperledger fabric and when I run its sample application for Node SDK, I get this error

Error: /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found (required by /home/mashhoodijaz/Desktop/FYP/fabric-samples/asset-transfer-basic/application-javascript/node_modules/pkcs11js/build/Release/pkcs11.node)

But when i run strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC in the /snap/core/current/usr/lib/x86_64-linux-gnu directory, I can see the version available.

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_3.4.20

GLIBCXX_3.4.21

GLIBCXX_3.4.22

GLIBCXX_3.4.23

GLIBCXX_3.4.24

GLIBCXX_3.4.25

GLIBCXX_3.4.26

GLIBCXX_3.4.27

GLIBCXX_3.4.28

GLIBCXX_3.4.29

GLIBC_2.2.5

GLIBC_2.3

GLIBC_2.14

GLIBC_2.6

GLIBC_2.4

GLIBC_2.18

GLIBC_2.16

GLIBC_2.3.4

GLIBC_2.17

GLIBC_2.3.2

GLIBCXX_DEBUG_MESSAGE_LENGTH

I have Ubuntu 20.04. and gcc -v gives gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

What is causing the issue? Do I have to remove the 26+ versions?

🌐
GitHub
github.com › LedgerHQ › ledger-live-desktop › issues › 4016
Ubuntu 18.04 LTS - version 'GLIBCXX_3.4.26' not found · Issue #4016 · LedgerHQ/ledger-live-desktop
July 14, 2021 - Confirmation on Ubuntu 18.04 LTS that the said GLIBCXX_3.4.26 is missing: strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep -i glib 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_3.4.20 GLIBCXX_3.4.21 GLIBCXX_3.4.22 GLIBCXX_3.4.23 GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBC_2.2.5 GLIBC_2.3 GLIBC_2.14 GLIBC_2.4 GLIBC_2.18 GLIBC_2.16 GLIBC_2.3.4 GLIBC_2.17 GLIBC_2.3.2 GLIBCXX_DEBUG_MESSAGE_LENGTH
Author   LedgerHQ
🌐
Red Hat
access.redhat.com › solutions › 6985203
SAP application or process reports /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found - Red Hat Customer Portal
SAP application upgrade fails with the error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found We cannot find a C++ standard library package which provides this symbol version in RHEL repos. Unable to install package/library libstdc++.so.6.0.30 in the RHEL 9 server
🌐
Medium
medium.com › @xzhaoxinm › solution-for-nn-u-net-reporting-error-version-glibcxx-3-4-26-not-found-6829010668dd
Solution for nn U-Net reporting error: version `GLIBCXX_3.4.26' not found | by Xin Zhao | Medium
July 10, 2023 - After searching on the Internet, I found out that this was because my file “/usr/lib/x86_64-linux-gnu/libstdc++.so.6” did not contain “GLIBCXX_3.4.26”. So I got this error when the model was using simpleITK.
Find elsewhere
Top answer
1 of 1
7
The errors are caused by a mismatch between the libstdc++ library shipped with Ubuntu 22.04 and MATLAB R2022b. Refer to the following link for the supported and compatible compilers for current and previous versions: https://www.mathworks.com/support/requirements/supported-compilers-linux.html As a workaround, you can direct MATLAB to use the system's libstdc++ library rather than the MATLAB shipped version. This can be achieved by setting the following environment variable prior to starting MATLAB: LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6 matlab You can then force load the system libstdc++ with the expected GLIBCXX version. Note that the above command only sets the environment variable for MATLAB. To set it for other processes of the current shell, use the following commands instead: export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6 matlab If the above solution does not help and you get an error similar to the following .MathWorks/ServiceHost/-mw_shared_installs/v2024.9.0.2/bin/glnxa64/MathWorksServiceHost: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ........) This error basically means that the 'libstdc++' library version shipped with the MathWorks ServiceHost has higher version than the system 'libstdc++' library. Please use one of the following mentioned steps to resolve the issue: 1. Upgrade the system 'libstdc++' library version to a newer version and set 'LD_PRELOAD' to point to this library as mentioned above. 2. Change the 'LD_PRELOAD' path to point to the MathWorks ServiceHost library as follows: LD_PRELOAD=~/.MathWorks/ServiceHost/-mw_shared_installs/VERSION/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6 matlab And, to set it for other processes of the current shell, use the following commands: export LD_PRELOAD=~/.MathWorks/ServiceHost/-mw_shared_installs/VERSION/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6 matlab Where 'VERSION' is the latest version of MathWorks ServiceHost matching your current MATLAB Version. For e.g, if you are using MATLAB R2024a, your ServiceHost version would like 'v2024.9.0.2'.
🌐
Medium
amonxu.medium.com › how-to-solve-error-on-centos-lib64-libstdc-so-6-version-glibcxx-3-4-xx-not-found-32c07dde15f6
How to solve error on CentOS “/lib64/libstdc++.so.6 version GLIBCXX_3.4.xx not found” | by Meng Xu | Medium
March 17, 2024 - Find and display all packages that provide `libstdc++.so.6` as a library file through yum ... NOTICE: Since I need version 3.4.22+, so I can just update it to 3.4.26.
🌐
Stack Overflow
stackoverflow.com › questions › 69044710 › how-do-i-fix-import-error-libstdc-so-6-error-glibcxx-3-4-26
linux - How do I fix Import Error: libstdc++.so.6 error, GLIBCXX 3.4.26 - Stack Overflow
GLIBCXX_3.4.26 is an object in libstdc++.so.6.0.26 ← GCC 9.1.0 gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html ............ So you will have to point to a libstdc++.so.6 ->libstdc++.so.6.0.26 which is old enough to work with your unknown OS.
🌐
Reddit
reddit.com › r/debian › standard c++ library of version `glibcxx_3.4.26' not found
r/debian on Reddit: Standard c++ library of version `GLIBCXX_3.4.26' not found
May 1, 2021 -

I am using Debian Buster docker container to run some specific c++ binaries. I need gcc-10 compiler, so I installed it from sources with the following script:

mkdir /tmp/$$ && cd /tmp/$$ && curl -s https://ftp.gnu.org/gnu/gcc/gcc-10.3.0/gcc-10.3.0.tar.xz \
        | tar xJ && mkdir build && cd build && \
        ../gcc-10.3.0/configure --prefix=/opt/gcc-10 \
                        --disable-dependency-tracking \
                        --disable-nls \
                        --disable-multilib \
                        --enable-default-pie \
                        --enable-languages=c,c++ && \
                        --enable-shared=
        make -j$(nproc) && make install

The compiler is up and running. I compiled my program just fine. But when running the executable, I get an error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found. I was checking the latest version present and I am stuck with CLIBCXX_3.4.25. I would assume, that gcc-10 would automatically install this required dependency. Since gcc-10 is not supported for Buster, apt-get install --only-upgrade libstdc++6 says that I already have the newest version. Is there any way for me to install newer version of libstdc++, from sources I assume, so I can run my binaries? I need to install it as a part of my Dockerfile build script, just like I did with gcc-10.

🌐
OpenGenus
iq.opengenus.org › usr-libstdc-so-version-glibcxx-not-found
[FIXED] /usr/lib/libstdc++.so.6: version 'GLIBCXX_3.4.16' not found
October 17, 2022 - One of the common reason is that during runtime, the executable is linking to the wrong libstdc++.so.
🌐
Quora
quora.com › Why-is-version-GLIBCXX_3-4-26-not-found-even-though-libstdc-so-6-is-recent-enough-to-be-compatible-shared-library-glibc-Linux
Why is 'version `GLIBCXX_3.4.26' not found' even though libstdc++.so.6 is recent enough to be compatible (shared library, glibc, Linux)? - Quora
Answer: Why is "version `GLIBCXX_3.4.26' not found" even though libstdc++.so.6 is recent enough to be compatible (shared library, glibc, Linux)? That happens when the binary is linked with a specific version name for the library. The simplest solution is to create a symbolic name with that vers...
🌐
Red Hat
access.redhat.com › discussions › 6886591
Red Hat Customer Portal - Access to 24x7 support and knowledge
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
🌐
Codelv
codelv.com › blog › 2022 › 9 › libstdc++.so.6-version-GLIBCXX_3.4.29-not-found
libstdc++ version GLIBCXX not found - CodeLV
September 22, 2022 - $ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIB 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_3.4.20 GLIBCXX_3.4.21 GLIBCXX_3.4.22 GLIBCXX_3.4.23 GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBCXX_3.4.26 GLIBCXX_3.4.27 GLIBCXX_3.4.28
🌐
Julia Programming Language
discourse.julialang.org › general usage
GLIBCXX_3.4.26 not found in RCall - General Usage - Julia Programming Language
September 24, 2019 - I just had the same problem when trying to import matplotlib with PyCall this morning. It worked fine in python, so I was a bit confused, but I came to the conclusion that the libstdc++ that ships with Julia is too old, while the one I have installed on my system is up to date.