ldd -v中的版本信息是什么意思? [英] What does version info in ldd -v mean?

查看:502
本文介绍了ldd -v中的版本信息是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Version information:
    /usr/lib/lapack/liblapack.so:
        libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
        libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
        libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        libgcc_s.so.1 (GCC_4.0.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
        libgfortran.so.3 (GFORTRAN_1.0) => /usr/lib/x86_64-linux-gnu/libgfortran.so.3
        libgfortran.so.3 (GFORTRAN_1.4) => /usr/lib/x86_64-linux-gnu/libgfortran.so.3
        libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6

因此,有3行libc.so.6,版本为GLIBC_2.xx.

So there are 3 rows of libc.so.6, versioned at GLIBC_2.xx.

那是什么意思? liblapack.so需要哪个版本的libc.so.6?

What does that mean? What version of libc.so.6 does this liblapack.so require?

如何获取liblapack.so的版本?

推荐答案

那是什么意思?

What does that mean?

这意味着liblapack.so要求libc.so.6中具有版本GLIBC_2.2.5GLIBC_2.4GLIBC_2.14的版本化符号.您可以在此处中了解版本控制符号.

It means that liblapack.so requires versioned symbols from libc.so.6 with versions GLIBC_2.2.5, GLIBC_2.4 and GLIBC_2.14. You can read about versioned symbols here.

liblapack.so需要什么版本的libc.so.6?

What version of libc.so.6 does this liblapack.so require?

它需要2.14或更高版本.通常,GLIBC不会删除符号,只会添加新符号,因此即使在最新的GLIBC-2.24中,仍会提供版本为GLIBC_2.2.5的符号.

It requires 2.14 or newer. In general, GLIBC never removes symbols, only adds new ones, and so will still provide symbols versioned at GLIBC_2.2.5 even in the latest GLIBC-2.24.

如果确实删除了这样的旧"版本符号,则会破坏依赖该符号的所有旧二进制文件(这就是为什么它没有完成的原因).

If it did ever remove such "old" versioned symbol, that would break any old binaries that depended on that symbol (which is why it's not done).

如何获取liblapack.so的版本?

How can I get liblapack.so's version?

看起来liblapack.so本身没有使用任何版本化的符号.您可以查看您的软件包管理器,以了解您拥有的liblapack.so版本.像这样:

It doesn't look like liblapack.so itself is using any versioned symbols. You can look at your package manager to find out what version of liblapack.so you have. Something like:

dpkg -S /usr/lib/lapack/liblapack.so
liblapack-dev: /usr/lib/lapack/liblapack.so

dpkg -l liblapack-dev
...
ii  liblapack-dev  3.5.0-2ubuntu1  amd64 Library of linear algebra routines 3 - static version

这篇关于ldd -v中的版本信息是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆