How to Obtain the Version of libstdc Library Installed on a Linux Machine
To determine the version of libstdc library installed on a Linux system, there are several methods you can employ.
One method involves using the following command:
1 |
|
This command displays the GLIBC version associated with the libstdc .so.6 library, providing an indication of the library's version. However, this method is considered more heuristic and ad-hoc.
For a more precise approach, use the ldconfig command to query the library version:
1 |
|
This command lists all shared libraries installed on the system, including libstdc , and displays their compatible versions.
Additionally, for libstdc versions 3.4.0 and later, a list of compatible versions can be obtained by running:
1 |
|
This command will display a list of symbols indicating supported GLIBCXX versions.
To determine the date stamp of the installed libstdc library, use a C program like the following:
1 2 3 4 5 6 7 8 9 10 11 |
|
Compile the program using g and execute it to display the date stamp:
1 2 3 |
|
Finally, a comprehensive table of libstdc versions and their corresponding datestamps can be found in the library's documentation.
The above is the detailed content of How to Determine the Version of the libstdc Library Installed on a Linux System?. For more information, please follow other related articles on the PHP Chinese website!