LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2004, 01:15 AM   #1
zecodela
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
how to check glibc version?


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

thanks,

jim
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-06-2004, 02:24 AM   #2
mdixon
LQ Newbie
 
Registered: Oct 2003
Location: Perth, Western Australia
Distribution: Fedora & FreeBSD
Posts: 17

Rep: Reputation: 3
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.

Last edited by mdixon; 12-06-2004 at 02:28 AM.
 
3 members found this post helpful.
Old 01-27-2010, 11:13 AM   #3
nickols_k
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 3
Just execute:

ldd --version

which comes with glibc package
 
3 members found this post helpful.
Old 05-13-2011, 11:52 AM   #4
GeekyAdam
LQ Newbie
 
Registered: Aug 2010
Location: Erie, PA
Distribution: Ubuntu 10.04
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by nickols_k View Post
Just execute:

ldd --version

which comes with glibc package
thanks for the quick command, was looking for this.
 
1 members found this post helpful.
Old 03-20-2019, 11:41 PM   #5
kumarks
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Thumbs up Thanks a lot, I was looking for this

Quote:
Originally Posted by nickols_k View Post
Just execute:

ldd --version

which comes with glibc package
Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error:6.11 Glibc-2.3.4---make check ukyo Linux From Scratch 3 08-26-2005 05:33 PM
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 02:44 PM
$make check / glibc impulze Linux From Scratch 1 04-29-2004 04:35 PM
glibc-2.3.2 make check problem nomad_2k3 Linux From Scratch 4 08-19-2003 02:31 PM
check glibc version used by gcc carboncopy Slackware 3 08-12-2003 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration