LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to check glibc version? (https://www.linuxquestions.org/questions/linux-software-2/how-to-check-glibc-version-263103/)

zecodela 12-06-2004 01:15 AM

how to check glibc version?
 
hi,
any method to check glibc version using in my linux box?
anyone have idea on this?

thanks,

jim

mdixon 12-06-2004 02:24 AM

Hi Jim,

Here is an answer from the "Frequently Asked Questions about the GNU C Library" (the FAQ):
Code:

4.9.        How can I find out which version of glibc I am using in the moment?

{UD} If you want to find out about the version from the command line simply
run the libc binary.  This is probably not possible on all platforms but
where it is simply locate the libc DSO and start it as an application.  On
Linux like

        /lib/libc.so.6

This will produce all the information you need.

What always will work is to use the API glibc provides.  Compile and run the
following little program to get the version information:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <stdio.h>
#include <gnu/libc-version.h>
int main (void) { puts (gnu_get_libc_version ()); return 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This interface can also obviously be used to perform tests at runtime if
this should be necessary.

BTW: the "{UD}" in that FAQ entry is the initials of the author. But don't contact Ulrich Drepper till you have tried everything in his FAQ entry first.

nickols_k 01-27-2010 11:13 AM

Just execute:

ldd --version

which comes with glibc package

GeekyAdam 05-13-2011 11:52 AM

Quote:

Originally Posted by nickols_k (Post 3842423)
Just execute:

ldd --version

which comes with glibc package

thanks for the quick command, was looking for this.

kumarks 03-20-2019 11:41 PM

Thanks a lot, I was looking for this
 
Quote:

Originally Posted by nickols_k (Post 3842423)
Just execute:

ldd --version

which comes with glibc package

Thanks


All times are GMT -5. The time now is 06:35 PM.