对 libtorrent 和 Deluge 库感到困惑

对 libtorrent 和 Deluge 库感到困惑

所以我有一个正在管理的远程 Debian 7 服务器,并且我仍然在学习很多关于 Debian 和 Linux 的知识。

具体来说,我有以下问题:

1) 如何确定 Deluge 使用了哪个库?我已经从源代码安装了 Deluge 1.3.6 以及 libtorrent-rasterbar-0.15.10。当我运行 deluge -v 命令时,我得到了:
$ deluge -v
deluge: 1.3.6
libtorrent: 0.15.10.0

向我展示,有没有办法确定 Linux 内部以不同方式使用哪个库?

2)当我运行 dpkg -S libtorrent 时,我得到以下信息:

$ dpkg -S libtorrent
libtorrent-rasterbar6:/usr/lib/libtorrent-rasterbar.so.6
libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6/copyright
libtorrent-rasterbar6:/usr/lib/libtorrent-rasterbar.so.6.0.0
python-libtorrent:/usr/share/pyshared/python_libtorrent-0.15.10.egg-info python-libtorrent:/usr/share/doc/python-libtorrent/changelog.Debian.gz libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6 python-libtorrent:/usr/lib/python2.7/dist-packages/libtorrent.so
python -libtorrent:/usr/lib/python2.6/dist-packages/libtorrent.so python-libtorrent: /usr/share/doc/python-libtorrent/版权 libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6/README.Debian python-libtorrent:/usr/share/doc/python-libtorrent/changelog.gz python-libtorrent:/usr/lib/python2.6/dist-packages/python_libtorrent-0.15.10.egg-info libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6/changelog.Debian.gz python-libtorrent:/usr/lib/pyshared/python2.6/libtorrent.so libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6/AUTHORS libtorrent-rasterbar6:/usr/share/doc/libtorrent-rasterbar6/changelog.gz python-libtorrent: /usr/share/doc/python-libtorrent python-libtorrent:/usr/lib/pyshared/python2.7/libtorrent.so python-libtorrent:/usr/lib/python2.7/dist-packages/python_libtorrent-0.15.10.egg-info













我想知道/了解它们之间的区别,如果我安装并绑定了 rasterbar,为什么 rasterbar 显示为 libtorrent-rasterbar6 而不是 rasterbar0.15.10。

我只是有点困惑,希望得到一些意见:)

答案1

你可以在二进制文件上使用 ldd,ldd 显示该文件的库要求。例如,这是我的盒子上 echo 的库要求:

#ldd /bin/echo
linux-vdso.so.1 (0x00007fff441fe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4a5a715000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4a5aae8000)

相关内容