【发布时间】:2015-06-05 09:00:58
【问题描述】:
在我的带有 OSMC 更新版本的树莓派 2 中,我想在 python 中使用带有 selenium 的 PhantomJS 并尝试编译它。
点击此链接: How to compile phantomjs on the raspberry pi 2
还有这个链接:Adding swap for the raspberry pi
在 U 盘中创建 16Gb 的交换文件并正确编译 phantomjs。
当我尝试执行它时:
phantomjs --version
我收到以下错误:
phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
我在此处和 google 上搜索了有关安装此文件的信息,但找不到信息。尝试从github为raspberry pi2安装二进制phantomjs并得到相同的错误,这就是尝试编译它的原因,但收到相同的错误。
我该如何解决这个问题?
【问题讨论】:
标签: compilation phantomjs raspbian libjpeg raspberry-pi2