linux 中查看GNU c库版本 libc.so.6(GLIBC版本)
001、 centos7 中
(base) [root@pc1 test]# cat /etc/redhat-release ## 查看当前系统 CentOS Linux release 7.6.1810 (Core) (base) [root@pc1 test]# ldd --version ## 查看gnu c库版本 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 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
002、centos8 中
(base) [b20223040323@cnode2047 ~]$ cat /etc/redhat-release ## 系统版本 CentOS Linux release 8.4.2105 (base) [b20223040323@cnode2047 ~]$ ldd --version ## gnu c库版本 ldd (GNU libc) 2.28 Copyright (C) 2018 自由软件基金会。 这是一个自由软件;请见源代码的授权条款。本软件不含任何没有担保;甚至不保证适销性 或者适合某些特殊目的。 由 Roland McGrath 和 Ulrich Drepper 编写。
003、ubuntu 中
root@ubuntu01:~# lsb_release -a ## 系统版本 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy root@ubuntu01:~# ldd --version ## 查看gnu c库 ldd (Ubuntu GLIBC 2.35-0ubuntu3.4) 2.35 Copyright (C) 2022 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.
。