【发布时间】: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