【问题标题】:FreeBSD linux library installationFreeBSD linux库安装
【发布时间】:2016-06-27 18:54:05
【问题描述】:

我是 FreeBSD 的新手。我想在上面运行 phantomjs。我已经根据FreeBSD Linux® Binary Compatibility 运行了 linux 仿真我根据这个答案phantom instalation 手动安装了 32bit phantom。经过所有这些步骤,当我尝试运行命令 phantomjs -v 时,我收到了这样的错误

phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory 我不知道,我应该如何在 FreeBSD 上安装 libfontconfig.so.1 库以使其正常工作。谢谢大家的建议!

【问题讨论】:

  • 你能推荐这个吗 - github.com/ariya/phantomjs/issues/10904 如果有帮助,请告诉我。
  • @SomanDubey,感谢您的回复!我试图运行这个命令pkg install phantomjs,但我得到了这个pkg: No packages available to install matching 'phantomjs' have been found in the repositories
  • 我指的是这篇文章 - 通过在该环境中运行 sudo apt-get install libfontconfig 解决了我的问题。感谢这个答案:stackoverflow.com/questions/13046555/… 在上面的链接中
  • 试试上面的软链接
  • @SomanDubey 不幸的是,我无法运行此命令,因为我只能在 freebsd 环境中运行 linux 二进制文件。它应该是pkg install phantomjs 命令替代apt-get install libfontconfig,但它不起作用(我在上面的评论)

标签: linux phantomjs shared-libraries freebsd


【解决方案1】:
g@crayon2:/usr/local/lib % pkg which /usr/local/lib/libfontconfig.so.1
/usr/local/lib/libfontconfig.so.1 was installed by package fontconfig-2.11.1_1,1

您应该能够安装该库:

pkg install x11-fonts/fontconfig

然后它应该放在/usr/local/lib 文件夹中(如上例所示)。

【讨论】:

    猜你喜欢
    • 2020-02-12
    • 1970-01-01
    • 2023-03-02
    • 2012-08-08
    • 2015-06-16
    • 2014-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多