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
复制代码

 。

 

posted @   小鲨鱼2018  阅读(404)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!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解压文件并保留原始压缩文件
点击右上角即可分享
微信分享提示