QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2120|回复: 2

如何查glibc的版本

[复制链接]
发表于 2005-9-11 12:57:18 | 显示全部楼层 |阅读模式
如何查glibc的版本
发表于 2005-9-11 13:35:42 | 显示全部楼层
[flasher@MagicLinux ~]$ rpm --info -q glibc
Name        : glibc                        Relocations: (not relocatable)
Version     : 2.3.3                             Vendor: (none)
Release     : 84.1mgc                       Build Date: 2004年12月05日 星期日 11时41分58秒
Install Date: 2005年03月23日 星期三 16时44分47秒      Build Host: MagicLinux
Group       : System Environment/Libraries   Source RPM: glibc-2.3.3-84.1mgc.src.rpm
Size        : 10852763                         License: LGPL
Signature   : (none)
Summary     : The GNU libc libraries.
Description :
The glibc package contains standard libraries which are used by
multiple programs on the system. In order to save disk space and
memory, as well as to make upgrading easier, common system code is
kept in one place and shared between programs. This particular package
contains the most important sets of shared libraries: the standard C
library and the standard math library. Without these two libraries, a
Linux system will not function.
回复

使用道具 举报

发表于 2005-9-11 18:17:21 | 显示全部楼层
有些版本linux下libc这个共享库文件有可执行属性,直接运行一下好了。

$ /lib/libc-2.3.5.so
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 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.
Compiled by GNU CC version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3).
Compiled on a Linux 2.6.13 system on 2005-08-29.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

从文件名上也可看出个大概。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-30 10:40 , Processed in 0.066445 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表