【Linux】glibcのバージョンを確認する方法
問題
glibcのバージョンを確認したいです。
答え
以下のいずれかで。
yumコマンドで
# yum list installed | grep glibc glibc.x86_64 2.12-1.166.el6_7.7 @updates glibc-common.x86_64 2.12-1.166.el6_7.7 @updates glibc-devel.x86_64 2.12-1.166.el6_7.7 @updates glibc-headers.x86_64 2.12-1.166.el6_7.7 @updates
rpmコマンドで
# rpm -q glibc glibc-2.12-1.166.el6_7.7.x86_64
32bit環境なら、libcをコマンドとして実行すると、
# /lib/libc.so.6 GNU C Library stable release version 2.5, by Roland McGrath et al. Copyright (C) 2006 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 20080704 (Red Hat 4.1.2-50). Compiled on a Linux 2.6.9 system on 2011-06-27. Available extensions: The C stubs add-on version 2.1.2. crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson GNU libio by Per Bothner NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B RT using linux kernel aio Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
64bit環境なら、libcをコマンドとして実行すると、
# /lib64/libc-2.12.so GNU C Library stable release version 2.12, by Roland McGrath et al. Copyright (C) 2010 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.4.7 20120313 (Red Hat 4.4.7-16). Compiled on a Linux 2.6.32 system on 2016-02-16. Available extensions: The C stubs add-on version 2.1.2. crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B RT using linux kernel aio libc ABIs: UNIQUE IFUNC For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
コメント