简体   繁体   English

libjpeg.so.8和libjpeg.so.62有什么区别

[英]What's the difference between libjpeg.so.8 and libjpeg.so.62

There are always jpeg decoder libraries pre-installed on Linux like: 总是在Linux上预先安装jpeg解码器库,例如:

/usr/lib/x86_64-linux-gnu/libjpeg.so
/usr/lib/x86_64-linux-gnu/libjpeg.so.62
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
/usr/lib/x86_64-linux-gnu/libjpeg.so.8
/usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2

What is the difference between the so library? so库有什么区别? Does libjpeg.so.62 build from libjpeg-turbo ? libjpeg.so.62是否从libjpeg-turbo构建?

Firstly, if you run: 首先,如果您运行:

ls -l /usr/lib/x86_64-linux-gnu/*jpeg*

you will see that most of the files are just symlinks to the one with the full version, so programs can link against the latest one by specifying an unversioned library in the knowledge that it will point to the latest version: 您会看到大多数文件只是与完整版本的文件的符号链接,因此程序可以通过指定一个未版本化的库来链接到最新版本,而该库将指向最新版本:

lrwxrwxrwx 1 root root     17 Oct 20  2016 libjpeg.so -> libjpeg.so.62.2.0
lrwxrwxrwx 1 root root     17 Oct 20  2016 libjpeg.so.62 -> libjpeg.so.62.2.0
-rw-r--r-- 1 root root 436224 Oct 20  2016 libjpeg.so.62.2.0

Secondly, unfortunately I don't have the same files as you else I would help further, but in general, you can find which package a given file comes from like this: 其次,不幸的是,我没有与其他文件相同的文件,我会进一步帮助您,但是通常,您可以找到给定文件来自哪个包,如下所示:

dpkg -S someFile

So, on my system, I can see that libjpeg.a for example, comes from package libjpeg62-turbo-dev 因此,在我的系统上,我可以看到例如libjpeg.a来自软件包libjpeg62-turbo-dev

dpkg -S libjpeg.a
libjpeg62-turbo-dev:amd64: /usr/lib/x86_64-linux-gnu/libjpeg.a

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM