ILD

how to check glibc version?
作者:Yuan Jianpeng 邮箱:yuanjp@hust.edu.cn
发布时间:2018-10-19 站点:Inside Linux Development

glibc每半年发布一个版本,分别在8月1号和2月1号左右。


2018-08-01: glibc 2.28 released.

2018-02-01: glibc 2.27 released.


查看glibc的版本,可以:


1 调用/lib/libc.so.6

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/lib/libc.so.6
GNU C Library stable release version 2.11.1 (20100118), by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for i686-suse-linux.
Compiled by GNU CC version 4.3.4 [gcc-4_3-branch revision 152973].
Compiled on a Linux 2.6.32 system on 2010-05-06.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        NoVersion patch for broken glibc 2.0 binaries
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


2 调用ldd,ldd是glibc的一个工具

1
2
3
4
5
6
$ ldd --version
ldd (GNU libc) 2.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


参考

https://www.gnu.org/software/libc/

https://www.linuxquestions.org/questions/linux-software-2/how-to-check-glibc-version-263103/


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.