Use ldd --version:
Copy$ ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
...
You can also run libc itself:
Copy$ /lib/libc.so.6
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
...
Answer from John on Stack Overflow Top answer 1 of 9
130
Use ldd --version:
Copy$ ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
...
You can also run libc itself:
Copy$ /lib/libc.so.6
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
...
2 of 9
60
Write a test program (name it for example glibc-version.c):
Copy#include <stdio.h>
#include <stdlib.h>
#include <gnu/libc-version.h>
int main(int argc, char *argv[]) {
printf("GNU libc version: %s\n", gnu_get_libc_version());
exit(EXIT_SUCCESS);
}
and compile it with the gcc-4.4 compiler:
Copygcc-4.4 glibc-version.c -o glibc-version
When you execute ./glibc-version the used glibc version is shown.
compiling - Check the actual glibc version used - Unix & Linux Stack Exchange
I want check the glibc version used by toolchain to build code for the target system (ARM). In toolchain directory I tried strings /sysroot/lib/libc.so.6 | grep GLIBC the output is GLIBC_2.4 GL... More on unix.stackexchange.com
How to check glibc version?
ldd --version
More on reddit.comlinux - How can you determine installed versions of the glibc libraries? - Stack Overflow
I'm working with an embedded Linux deployment and am using a cross compiler tool chain that doesn't compile I2C library function calls. How do I determine the precise versions of the libraries on ... More on stackoverflow.com
Running into a version `GLIBC_2.38' not found error
The program is too new for the distro. You're correct not to just "upgrade glibc". This is an integral part of the OS and difficult/impossible to do reliably. You could try running the program in a Distrobox using a distro which has a newer glibc, probably Fedora or Arch will work. You could wait until Kubu 24.04 and try there. It's already April so you could probably install the beta now and update to the full version when it comes out in a few weeks. More on reddit.com
Benohead
benohead.com › home › linux: check the glibc version
Linux: Check the glibc version - Benohead's Software Blog
January 28, 2015 - Linux: check argument count, display usage, check user · After unpacking, receive this message: “/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26′ not found (required by /home/john/Downloads/waterfox/libmozsandbox.so)” · But ldd –version returns this: “ldd (Debian GLIBC 2.28-10) 2.28” ·
Xmodulo
xmodulo.com › check-glibc-version-linux.html
How to check glibc version on Linux
July 9, 2020 - A simple command-line to check the version of the GNU C library is as follows. ... In this example, the version of glibc is 2.19.
Gordano
gordano.com › home › knowledge base › gms › how do i tell which version of glibc i have installed on my system?
How do I tell which version of glibc I have installed on my system? – GMS
On non RPM based Linux systems, please open a command prompt and change to the /lib directory then type "ls -al /lib/libc*". This will return a list of glibc files on your system including version numbers.
Reddit
reddit.com › r/mxlinux › how to check glibc version?
r/MXLinux on Reddit: How to check glibc version?
September 27, 2022 -
How to check what glibc version i have installed? If i run dpkg -l | grep glibc i don't get any output. I am using MX-21.2.1_x64 Wildflower.
OpenGenus
iq.opengenus.org › find-glibc-version
Find glibc version in your system
We present 3 different ways to identify compile time and run time version of glibc. The version of glibc has two components: Major version and Minor version.
Blogger
tuxthink.blogspot.com › 2012 › 03 › finding-out-glibc-version.html
Linux World: Finding out the glibc version
1. Open a terminal and run Which ... which would work if are running debian based systems is to open the synaptic package manager and go to the package libc-bin and see the installed version number in front of it....
UMA Technology
umatechnology.org › home › how to check glibc version in linux
How to Check Glibc Version in Linux - UMA Technology
March 1, 2026 - Checking the glibc version is straightforward and can be achieved through multiple methods, ranging from simple command-line queries to examining version files. The most common approach involves using the ldd command, which displays the version of glibc linked to shared libraries.
Cylab
cylab.be › blog › 388 › a-solution-to-version-glibc-2xx-not-found
A Solution to Version GLIBC_2.XX Not Found | cylab.be
January 15, 2025 - In this case, the binary my-binary needs glibc version 2.XX, but your system either has another version or none at all. You can check whether the program is linked dynamically or statically using the ldd command.
N-able
documentation.n-able.com › remote-management › userguide › Content › linux_v2_dependencies.htm
Package Dependencies
To view whether glibc is installed on the server and its version number run the ldd command with the version switch. ... Where glibc is not discovered on the device, the following command installs the package. This requires root to install. ... To check whether the computer is using DNF or ...
TechBloat
techbloat.com › home › how to check glibc version
How to Check Glibc Version - TechBloat
March 1, 2026 - Use dpkg -s libc6 | grep Version on Debian-based systems. Use rpm -q glibc on RPM-based systems. These commands provide a quick, reliable way to check your system’s C library version, helping ensure compatibility and aiding in system management tasks.
Top answer 1 of 5
23
For glibc:
/lib/libc.so.6
Sounds maybe strange to run a so file but should print out version information in this case
For the kernel version use uname
For the binutils parsing the output of ld --versionmight yield what you expect, the same for gcc --version. This is a bit tedious but I do not know another way.
2 of 5
6
$ ldd --version
ldd (GNU libc) 2.39