【问题标题】:Cannot open shared object file libpng12.so.0无法打开共享对象文件 libpng12.so.0
【发布时间】:2019-04-23 12:48:57
【问题描述】:

我正在尝试在以下机器上运行 Quartus 13.0:

parrot 4.18.0-parrot10-amd64 #1 SMP Debian 4.18.10-1parrot10 (2018-10-06) x86_64 GNU/Linux.

我已经完成了 Quartus 13.0 的安装,当我尝试执行它时,我得到了这个错误:

quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

我已阅读堆栈溢出和其他网站中的所有相关问题,但没有人为我工作。

在查找该文件时,我找到了它。我试图做一个硬链接,但它也不起作用。搜索结果:

┌─[pepbd@parrot]─[~]
└──╼ $ls -ld $(locate -r libpng.*\.so.*)
lrwxrwxrwx 1 root root     19 nov 19 17:09 /usr/lib/x86_64-linux-gnu/libpng16.so.16 -> libpng16.so.16.34.0
-rw-r--r-- 1 root root 210864 jul 10 13:17 /usr/lib/x86_64-linux-gnu/libpng16.so.16.34.0
-rw-r--r-- 1 root root  18272 oct 14 21:59 /usr/lib/x86_64-linux-gnu/vlc/plugins/codec/libpng_plugin.so

【问题讨论】:

  • 您确实有 libpng,但 Quartus 找不到它们,因为名称不同:libpng12.so.0(需要)与 libpng16.so.16(可用)。您可以尝试符号链接,或安装以前版本的库。
  • 我已尝试安装以前版本的库,但它无法正常工作。如果我做一个 libpng16.so.16 的符号链接,它会给出一个错误。

标签: shared-libraries libpng quartus debian-based parrot-os


【解决方案1】:

我在 Ubuntu 上使用 Quartus Prime 18 时遇到了同样的问题。这对我有用(以 sudo 运行):

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
  && dpkg -i /tmp/libpng12.deb \
  && rm /tmp/libpng12.deb

【讨论】:

    猜你喜欢
    • 2014-04-30
    • 2019-08-07
    • 1970-01-01
    • 1970-01-01
    • 2021-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多