找出库版本

iom*_*tin 17 linux ubuntu version

我想知道我的系统 (Ubuntu 12.04) 中安装了哪个版本的 C 库。特别是,我对 libnuma 感兴趣。什么是正确的方法呢?

cd /usr/lib
ls -l libnuma*
-rw-r--r-- 1 root root 70312 Feb  8  2012 libnuma.a
lrwxrwxrwx 1 root root    12 Feb  8  2012 libnuma.so -> libnuma.so.1
-rw-r--r-- 1 root root 43976 Feb  8  2012 libnuma.so.1
Run Code Online (Sandbox Code Playgroud)

Law*_*nce 20

我会dpkg -l | grep libnuma1用来获取版本。

例如,我dpkg -l在 xterm 上运行过,您可以看到我正在运行 xterm 的 278-4 版本。

# dpkg -l | grep xterm
ii  lxterminal                            0.1.11-4                           amd64        LXDE terminal emulator
ii  xterm                                 278-4                              amd64        X terminal emulator
Run Code Online (Sandbox Code Playgroud)


Mar*_*iae 13

你应该试试

 ldconfig -v | grep libnuma
Run Code Online (Sandbox Code Playgroud)