This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3785|Reply: 3

[linux] CentOS 7 error libstdc++.so.6: version 'GLIBCXX_3.4.20' not found

[Copy link]
Posted on 4/16/2024 2:27:27 PM | | | |
When running a .NET 8 application on CentOS 7, the error is as follows:

[32514]: /itsvse: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /itsvse)
[32514]: /itsvse: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /itsvse)


The reason for the exception is that the libstdc++.so.6 version is too low, and the command is as follows:





solution

To compile the new version of GCC, the command is as follows:




It takes a long time to compile and may eventually fail to compile, butIt does not affect the normal generation of "libstdc++.so.6.0.29"

Reset the libstdc++.so.6 softlink with the following command:

Finally, attach the compiled file:

Tourists, if you want to see the hidden content of this post, pleaseReply




Previous:Website module requirements
Next:HTML uses an iframe to preview a base64 encoded PDF file
 Landlord| Posted on 1/11/2025 4:53:05 PM |
To see the missing dependencies, command:


root@ubuntu2004:/home/temp/test8/testubuntucv# ldd *.so* | grep found
        liblttng-ust.so.0 => not found
        libtesseract.so.4 => not found
        libgtk-x11-2.0.so.0 => not found
        libgdk-x11-2.0.so.0 => not found
        libdc1394.so.22 => not found
        libavcodec.so.58 => not found
        libavformat.so.58 => not found
        libavutil.so.56 => not found
        libswscale.so.5 => not found
        libIlmImf-2_3.so.24 => not found


 Landlord| Posted on 1/11/2025 5:28:48 PM |
glibc and GLIBCXX are two different libraries that differ significantly in their functionality and usage:

glibc (GNU C Library):

This is an implementation of the C standard library.
It provides basic functions such as operating system calling, memory management, and string handling.
It is one of the core libraries of the Linux system, and almost all programs rely on it.
Contains an implementation of the POSIX standard function.
Hardware architecture agnostic, providing consistent APIs.

GLIBCXX (GNU Standard C++ Library):

This is an implementation of the C++ standard library.
It includes C++ features such as containers (such as vectors, lists), algorithms, and iterators.
The C++ Standard Template Library (STL) is implemented.
It provides C++-specific functions, such as intelligent pointers, regular expressions, etc.
is part of the GCC compiler to support C++ programs.

Main differences:

Programming languages: glibc for C and GLIBCXX for C++.
Scope of functions: glibc is more basic, and GLIBCXX provides more advanced data structures and algorithms.
Dependencies: Almost all Linux programs require glibc, while only C++ programs require GLIBCXX.
Update frequency: usually glibc updates are slower and focus more on stability; GLIBCXX is updated quickly to keep up with changes in the C++ standard.
Understanding the difference between these two libraries is important for choosing the right tools and libraries for developing Linux applications.

 Landlord| Posted on 1/11/2025 5:32:47 PM |
glibc source code download:https://ftp.gnu.org/gnu/glibc/
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com