出力を抽出して glibc のバージョンを確認しようとしていldd --version
ます。Ubuntu マシンの例を次に示します。
ldd (Ubuntu GLIBC 2.21-0ubuntu4) 2.21
そして、これは CentOS 6.5 マシンからの別のものです。
ldd (GNU libc) 2.17
ありがとうございました、
クリス
使用している libc のバージョンを確認する正しい方法は、libc.so
ファイルを実行することです。はい、奇妙ですが、これは正しい方法ではないため、ld --version
行うべき方法です。ldconfig --version
$ /lib/powerpc64le-linux-gnu/libc.so.6
GNU C Library (Ubuntu GLIBC 2.21-0ubuntu4) stable release version 2.21, by Roland McGrath et al.
Copyright (C) 2015 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.9.2.
Available extensions:
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
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.