Discussions

Libstdc++.so.6: version `GLIBCXX_3.4.30' not found and sovled - Troubleshooting - Apache TVM Discuss
when excute the example of the doc, the error happed. Traceback (most recent call last): File “postprocess.py”, line 7, in from tvm.contrib.download import download_testdata File “/home/jiazhanbo/ai_dev/build_fold/0.12… More on discuss.tvm.apache.org
🌐 discuss.tvm.apache.org
1
September 12, 2023
ImportError: `GLIBCXX_3.4.30' not found
Running import scipy.stats as stats gives the following error: ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/handboek/.local/share... More on github.com
🌐 github.com
10
September 22, 2022
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
'GLIBCXX_3.4.30' not found
Hi, I have installed the latest torch version in a fresh environment and get the following error when executing python run_glue.py: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/user/.conda/envs/env/lib/python3.8/site-packages/torch/lib/lib... More on discuss.pytorch.org
🌐 discuss.pytorch.org
12
0
February 9, 2024
🌐
Apache TVM
discuss.tvm.apache.org › troubleshooting
Libstdc++.so.6: version `GLIBCXX_3.4.30' not found and sovled - Troubleshooting - Apache TVM Discuss
September 12, 2023 - when excute the example of the doc, the error happed. Traceback (most recent call last): File “postprocess.py”, line 7, in from tvm.contrib.download import download_testdata File “/home/jiazhanbo/ai_dev/build_fold/0.12…
🌐
GitHub
github.com › rstudio › reticulate › issues › 1282
ImportError: `GLIBCXX_3.4.30' not found · Issue #1282 · rstudio/reticulate
September 22, 2022 - It might be a path issue. The created miniconda enviroment by reticulate is sound. And the included libstdc++.so.6 in the miniconda enviroment does contain the GLIBCXX_3_4.30 string.
Author   rstudio
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.
Find elsewhere
🌐
PyTorch Forums
discuss.pytorch.org › c++
'GLIBCXX_3.4.30' not found - C++ - PyTorch Forums
February 9, 2024 - Hi, I have installed the latest torch version in a fresh environment and get the following error when executing python run_glue.py: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/user/.conda/envs/env/lib/python3.8/site-packages/torch/lib/lib...
🌐
GitHub
github.com › deepspeedai › DeepSpeed › issues › 2886
`libstdc++.so.6: version `GLIBCXX_3.4.30' not found` · Issue #2886 · deepspeedai/DeepSpeed
February 23, 2023 - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ f = <built-in function create_dynamic> args = (ModuleSpec(name='async_io', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x7fa944fc0430>, origin='/home/stas/.cache/torch_extensions/py38_cu117/async_io/async_io.so'),) kwds = {} > ??? E ImportError: /home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/torch/lib/../../../../libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/stas/.cache/torch_extensions/py38_cu117/async_io/async_io.so) <frozen importlib._bootstrap>:219: ImportError
Author   deepspeedai
🌐
Apache TVM
discuss.tvm.apache.org › troubleshooting
OSError: /home/ryb2kor/miniconda3/envs/modelinterpret/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ryb2kor/tvm/build/libtvm.so) - Troubleshooting - Apache TVM Discuss
October 26, 2023 - Hi, I have a miniconda environment and I a trying to build my demo (python demo). When i do python3 build.py -bv, I am presented with an error. An excerpt containing the prime issue has been presented. Traceback (most recent call last): File “/home/name_folder/Jetson-files/gpgpu_model_interpretability-share-tvm_interpret@37992f4032a/demo/tvm/model_lib_generator.py”, line 3, in import tvm File “/home/name/tvm/python/tvm/init.py”, line 26, in from ._ffi.base import TVMError, version, _RUNTIME_...
🌐
MathWorks
mathworks.com › matlabcentral › answers › 2126086-libstdc-so-6-version-glibcxx_3-4-30-not-found
libstdc++.so.6: version `GLIBCXX_3.4.30' not found - MATLAB Answers - MATLAB Central
June 6, 2024 - Hi all, I tried to run MATLAB in SUSE Linux SP15.4 and encountered the problem as shown in the title. I've udpated the gcc in my workstation from 7 to 11 and searched for newer GLIBC. However, th...
🌐
Reddit
reddit.com › r/debian › i can't seem to get glibcxx_3.4.30 on debian 11. how can i upgrade?
r/debian on Reddit: I can't seem to get GLIBCXX_3.4.30 on Debian 11. How can I upgrade?
June 8, 2022 -

I have exhausted myself for hours trying to find a solution to this. I am completely new to Linux and very inexperienced with operating systems back-end in general. I am trying to import librosa, but I am thrown with this error:

/home/lakshya/anaconda3/envs/tff_env/lib/python3.9/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/lakshya/anaconda3/envs/tff_env/lib/python3.9/site-packages/scipy/fft/_pocketfft/pypocketfft.cpython-39-x86_64-linux-gnu.so)

I tried the following to fix it based on the other similar questions that I browsed through:

  1. sudo apt-get install libstdc++6
    It's output: libstdc++6 is already the newest version (10.2.1-6)

  2. sudo apt-get dist-upgrade
    It's output: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

  3. strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
    It's output: GLIBCXX version up to GLIBCXX_3.4.28

  4. conda install libgcc in my virtual env "tff_env"
    It's output: libgcc-7.2.0 installed in tff_env

  5. Pip installed the libgcc package in the virtual environment as well. Didn't work.

What can I do?

My OS: Debian GNU/Linux 11 (bullseye)

🌐
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.
🌐
Vercel Community
community.vercel.com › help
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found - Help - Vercel Community
September 29, 2025 - I am currently stuck running into an issue using the latest version of DuckDB with Vercel. You can reproduce this by deploying GitHub - AlfieJones/duckdb-vercel-bug to vercel. While building you’ll get the erorr: Error: Failed to load external module @duckdb/node-api: Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /vercel/path0/node_modules/@duckdb/node-bindings-linux-x64/duckdb.node) Looks like the latest version of @duckdb/node-api requires this library
🌐
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
🌐
Red Hat
access.redhat.com › discussions › 6886611
lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
April 4, 2022 - 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