3

我有一个需要共享库 libltdl.so.3 的程序。在 14.04 中运行此程序时,我遇到以下错误:

error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory

我已经安装并更新了 libtool。在运行 atp-get install libltdl3 我得到以下输出

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libltdl3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libltdl3' has no installation candidate

在运行时找到 libltdl.so 我得到

/usr/lib/x86_64-linux-gnu/libltdl.so
/usr/lib/x86_64-linux-gnu/libltdl.so.7
/usr/lib/x86_64-linux-gnu/libltdl.so.7.3.0

有人能告诉我如何获得 libltdl.so.3 吗?

4

1 回答 1

3

我找到的唯一解决方案是创建一个符号链接

ln -s /usr/lib/x86_64-linux-gnu/libltdl.so /usr/lib/x86_64-linux-gnu/libltdl.so.3

见:http ://englanders.us/~jason/howtos.php?howto=libtool

于 2016-11-17T13:32:10.670 回答