确认-glibc-版本

背景

看 MySQL 的安装包默认都会带一个 glibc 的版本号,比如说 mysql-8.0.33-linux-glibc2.12-x86_64.tar.xz 用的 glibc 版本就是 2.12 。 那我怎么知道我系统上的 glibc 版本是多少呢?


检查 glibc 版本

说起来也简单一行命令搞定 ldd --version 就行了 。

ldd --version
ldd (GNU libc) 2.34
Copyright (C) 2021 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.