加载共享库时出错:libffi.so.5:

加载共享库时出错:libffi.so.5:
$ sudo apt-get install libffi6 libffi-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libffi6 is already the newest version.
The following packages were automatically installed and are no longer required:
  gir1.2-dbusmenu-gtk-0.4 update-notifier-common gir1.2-gtk-2.0 language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libffi-dev
0 upgraded, 1 newly installed, 0 to remove and 255 not upgraded.
Need to get 96.1 kB of archives.
After this operation, 356 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/main libffi-dev amd64 3.0.11~rc1-5 [96.1 kB]
Fetched 96.1 kB in 2s (40.9 kB/s)
Selecting previously unselected package libffi-dev.
(Reading database ... 221614 files and directories currently installed.)
Unpacking libffi-dev (from .../libffi-dev_3.0.11~rc1-5_amd64.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up libffi-dev (3.0.11~rc1-5) ...

进而,

:/opt/wunderlist-1.2.4/Wunderlist-1.2.4$ sudo ./Wunderlist   

./Wunderlist: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory

更多信息:

$ cat /etc/issue
Ubuntu 12.04.4 LTS \n \l

我现在该怎么办?

答案1

Wunderlist 似乎专门寻找 libffi 的旧版本,它需要 libffi5:

libffi.so.5: cannot open shared object file: No such file or directory

您使用的是 12.04 版本,并且该包libffi5 (3.0.9-1)仅在 lucid repos 中可用。

您可以将 lucid repos 添加到您的系统中/etc/apt/sources.lst,然后从 lucid repos 中手动安装较旧的软件包,从而创建一个由 12.04 和 10.04 组成的混合系统。我认为这不是一个好主意,因为手动添加非常旧的东西不一定会带来稳定的系统。

或者你可以要求 wunderlist 的程序员更新他们的依赖项,也许它也适用于 libffi6。

提到的第三个可能的解决方案这里(德语)只需将 6 符号链接到 5 即可:

ln -s /usr/lib/i386-linux-gnu/libffi.so.6 /usr/lib/i386-linux-gnu/libffi.so.5

答案2

使用

https://packages.debian.org/wheezy/amd64/libffi5/download

获取适合您平台的最新版本(上面的链接适用于 amd64),安装后您应该获得所需的库

相关内容