有两种方式查看glibc版本:
方式一
bingsanlang@ubuntu:~$ getconf GNU_LIBC_VERSION
glibc 2.23
方式二:
bingsanlang@ubuntu:~$ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu11.2) 2.23
Copyright (C) 2016 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.
可以看到 glibc的版本是GLIBC 2.23-0ubuntu11.2