Contents
How do I check glibc version?
The easiest way is to use ldd command which comes with glibc and in most cases it will print the same version as glibc:
- $ ldd –version ldd (Ubuntu GLIBC 2.30-0ubuntu2.1) 2.30.
- $ ldd `which ls` | grep libc libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f918034d000)
- $ /lib/x86_64-linux-gnu/libc.
How do I know which version of libc6 I have?
Their is two additional ways to find out the glibc version:
- Check the version of the installed glibc rpm package : this by runing this command. rpm -q glibc.
- Check the version of the used libc.so file. This way is a little bit more difficult. You can check it in this link: Linux: Check the glibc version.
Where is glibc on Linux?
In the gcc manual it is given that “The C standard library itself is stored in ‘/usr/lib/libc.
Does gcc use glibc?
gcc is the GNU Compiler Collection. It deals with turning source files into architecture-dependant assembly code. glibc is the GNU implementation of the Standard C library.
How do I install the latest version of glibc?
1 Answer
- I read at Wikipedia about glibc.
- Run apt-get update to update the database.
- Use apt-cache policy libc6 to find out the installed version and the candidate version, whereas the installed version can be also shown with ldd –version .
- Install the new candidate version with apt-get install libc6.
How to check the version of glibc in Linux?
Check the version of the installed glibc rpm package. Check the version of the used libc.so file. First using rpm: > rpm -q glibc glibc-2.11.1-0.17.4. The second way is a little bit more difficult. You first have to find which libc.so file is being used by a known program e.g. netstat:
Which is the highest version of glibc in LDD?
The highest version in the symbols is the one that matters; in your case, 2.5. See What do the multiple GLIBC versions mean in the output of ldd? for details. Thanks for contributing an answer to Unix & Linux Stack Exchange!
Which is the libc version of Gcc 4.4?
I have two gcc compilers installed on my system, one is gcc 4.1.2 (default) and the other is gcc 4.4.4. How can I check the libc version used by gcc 4.4.4, because /lib/libc.so.6 shows the glibc used by gcc 4.1.2, since it is the default compiler.
How can I find out what version of libc I have?
{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.