centos7、centos8、rocky9、ubuntu22.04 gnu c库对比
001、centos7
[root@pc1 test01]# cat /etc/redhat-release ## 系统centos7 CentOS Linux release 7.6.1810 (Core) [root@pc1 test01]# ldd --version ## 利用ldd查询 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. [root@pc1 test01]# strings /lib64/libc.so.6 | grep "^GLIBC" | sort -rV | head ## 利用strings查询 GLIBC_PRIVATE GLIBC_2.17 GLIBC_2.17 GLIBC_2.16 GLIBC_2.16 GLIBC_2.15 GLIBC_2.14 GLIBC_2.13 GLIBC_2.13 GLIBC_2.12
002、centos8
[root@localhost test01]# cat /etc/redhat-release ## 系统 CentOS Linux release 8.4.2105 [root@localhost test01]# ldd --version ##查看最高版本 ldd (GNU libc) 2.28 Copyright (C) 2018 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. [root@localhost test01]# strings /lib64/libc.so.6 | grep "^GLIBC" | sort -rV | head ## 利用strings查询 GLIBC_PRIVATE GLIBC_2.28 GLIBC_2.28 GLIBC_2.27 GLIBC_2.26 GLIBC_2.26 GLIBC_2.25 GLIBC_2.25 GLIBC_2.24 GLIBC_2.23
003、rocky9
[root@PC1 test01]# cat /etc/redhat-release ## 系统版本rocky9.3 Rocky Linux release 9.3 (Blue Onyx) [root@PC1 test01]# ldd --version ## 利用ldd命令查询 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. [root@PC1 test01]# strings /lib64/libc.so.6 | grep "^GLIBC" | sort -rV | head ## 利用strings查询 GLIBC_PRIVATE GLIBC_2.34 GLIBC_2.33 GLIBC_2.33 GLIBC_2.32 GLIBC_2.31 GLIBC_2.30 GLIBC_2.29 GLIBC_2.29 GLIBC_2.28
004、ubuntu 22.04中
root@liujiaxin001:~# lsb_release -a ## 查看系统 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy root@liujiaxin001:~# ldd --version ## ldd查询 ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 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. root@liujiaxin001:~# ldd $(which top) | grep "libc.so" ## ldd 一个当前系统中c库编写的一个动态可执行程序,找出libc.so.6的位置 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007bee60a00000) ## strings查询 root@liujiaxin001:~# strings /lib/x86_64-linux-gnu/libc.so.6 | grep "^GLIBC" | sort -rV | head -n 5 GLIBC_PRIVATE GLIBC_2.35 GLIBC_2.34 GLIBC_2.33 GLIBC_2.32
。
分类:
计算机
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2023-04-03 R语言绘图中刻度线长度的设置
2022-04-03 linux中sed命令匹配特定字符之间的数据
2022-04-03 linux中实现将上下两行文本合并为一行
2022-04-03 linux系统中awk命令输出等宽的行号
2022-04-03 linux中直接对压缩文件进行处理
2022-04-03 linux 中文件利用管道进行压缩输出
2022-04-03 linux中gzip解压文件并保留原始压缩文件