dreamedge.net

glibcのバージョン確認

2008-03-30T01:28:00+0000

gnu libcは実行するとバージョン等を表示してくれる.
一般にlibcは/lib/に入っているので,/lib/libc.so*を実行すればコンパイルしたgccの情報とかまでわかる.

$ /lib/libc.so*
GNU C Library stable release version 2.3.6, 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.1.2 20061115 (prerelease) (Debian 4.1.1-21).
Compiled on a Linux 2.6.18 system on 2008-06-08.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        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:
.

— 以下は古い記述 —

$ ls -l /lib/libc-*

うっかり/usr/libの下を探しちゃったり,glibcがlibc.soなことを忘れたりするので要注意.