【问题标题】:Where do I find the libxul.so library for my Linux system?在哪里可以找到适用于我的 Linux 系统的 libxul.so 库?
【发布时间】:2016-04-08 22:05:29
【问题描述】:

我最近为我的 Linux 系统下载了 64 位版本的 Firefox……

[davea@mydevbox mydir]$ uname -a
Linux mydevbox.mydomain.com 7.3.8-25.26.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

但我似乎无法运行它,出现这个奇怪的错误......

[davea@mydevbox firefox]$ ./firefox -V
XPCOMGlueLoad error for file /home/davea/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

有谁知道我需要安装什么库才能获得“libxul.so”?我尝试了“yum install libxml”,但没有解决任何问题。

【问题讨论】:

  • 进行“互联网搜索”会在结果顶部附近显示此链接:packages.ubuntu.com/…。根据您的项目查看您必须安装的可能软件包列表(不要全部安装)。祝你好运。
  • 该链接列出了“libxul.so”,这正是我的问题。我该如何安装它?鉴于上面的“uname -a”信息,我找不到适合 yum 的软件包。

标签: linux installation shared-libraries yum


【解决方案1】:

yum 有一个搜索工具来识别包含特定文件的包:

# yum provides '*/libxul.so'

xulrunner-38.0-1.fc21.i686 : XUL Runtime for Gecko Applications
Repo        : updates
Matched from:
Filename    : /usr/lib/xulrunner/libxul.so

xulrunner-38.0-1.fc21.x86_64 : XUL Runtime for Gecko Applications
Repo        : updates
Matched from:
Filename    : /usr/lib64/xulrunner/libxul.so

etc...

结果(即软件包名称)取决于您的 Linux 发行版。

【讨论】:

  • 由于“uname -m”为我返回“x86_64”,我厌倦了 yoru 的第二个选项“sudo yum install xulrunner-38.0-1.fc21.x86_64”,但得到了错误,“没有包 xulrunner -38.0-1.fc21.x86_64 可用。”
  • 只需运行yum install xulrunner 并让yum 为您的系统找出正确的版本。以上版本号适用于我的系统(举例)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-25
  • 2017-02-04
  • 1970-01-01
  • 2011-05-16
  • 2016-02-21
相关资源
最近更新 更多