【问题标题】:./Pep8: error while loading shared libraries: libQtWebKit.so.4 on Ubuntu 20.04./Pep8:加载共享库时出错:Ubuntu 20.04 上的 libQtWebKit.so.4
【发布时间】:2021-04-20 20:00:17
【问题描述】:

我必须在我的 Ubuntu 20.04 上为我的组装课程安装 PEP/8,但是当我尝试运行该文件时:

./Pep8

我有这个错误:

./Pep8: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

但是,我在“/usr/lib/x86_64-linux-gnu/”中看到了这个库。

但我认为该程序是用 32 位架构制作的:

file Pep8

Pep8: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=59393bb4f063551ac708a7690b8cb2fce1121ded, with debug_info, not stripped

我不确定我必须做什么才能让它发挥作用。

【问题讨论】:

    标签: shared-libraries ubuntu-20.04 pep8-assembly


    【解决方案1】:

    尝试安装qtwebkit包:

    yum 提供 */libQtWebKit.so.4

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题。我尝试从这个 ppa 安装 libqtcore4 和 libqtwebkit4:ppa:rock-core/qt4,但这并没有解决我的问题。最后,我只是从源代码编译终端版本。你可以找到它here

      # assuming you're in the binaries directories
      ./asem8 your_pep_code.pep
      # You start the emulator,
      # load the object file
      # and execute it
      ./pep8
      

      【讨论】:

        猜你喜欢
        • 2021-04-08
        • 2011-05-29
        • 2017-11-05
        • 2014-12-09
        • 2022-01-04
        相关资源
        最近更新 更多