Compilation 在Raspberry 2上成功编译phantomjs,但未执行(libjpeg.so.8)

Compilation 在Raspberry 2上成功编译phantomjs,但未执行(libjpeg.so.8),compilation,phantomjs,raspbian,libjpeg,raspberry-pi2,Compilation,Phantomjs,Raspbian,Libjpeg,Raspberry Pi2,在我的raspberry 2和OSMC的更新版本中,我希望在python中使用PhantomJS和selenium,并尝试编译它 点击此链接: 此链接: 在USB磁盘中创建了16Gb的交换文件,并正确编译了phantomjs 当我尝试执行它时: phantomjs --version 我收到以下错误: phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: N

在我的raspberry 2和OSMC的更新版本中,我希望在python中使用PhantomJS和selenium,并尝试编译它

点击此链接:

此链接:

在USB磁盘中创建了16Gb的交换文件,并正确编译了phantomjs

当我尝试执行它时:

phantomjs --version
我收到以下错误:

phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
我在这里和谷歌上搜索了有关安装此文件的信息,但找不到相关信息。试图从github为raspberry pi2安装二进制phantomjs,并获得相同的错误,这就是尝试编译它的原因,但收到相同的错误

如何解决这个问题?

问题已解决

尝试执行已编译二进制文件时,问题在于以下命令:

$ cd /home/TOSHIBA/fuente/phantomjs/bin
$ phantomjs
正在执行从另一个用户的github下载的my/usr/bin上安装的上一个二进制版本(2.0.0)

现在,我的Raspberry2上的已编译二进制文件解决了这个问题:

$ cd /home/TOSHIBA/fuente/phantomjs/bin
$ ./phantomjs --version
    2.0.1-development
$ ldd phantomjs
    libicudata.so.52 => /usr/lib/arm-linux-gnueabihf/libicudata.so.52 (0x758d0000)
    libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x75887000)
    libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x75762000)
    libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0x7572a000)
    libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x756b5000)
    libjpeg.so.62 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.62 (0x7566c000)
    libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x75642000)
    libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x75620000)
    libicui18n.so.52 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.52 (0x754c8000)
    libicuuc.so.52 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.52 (0x753bc000)
    libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x753a9000)
    librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x75392000)
    libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x7536f000)
    libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x752b8000)
    libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x75244000)
    libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x7521b000)
    libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x7512c000)
    /lib/ld-linux-armhf.so.3 (0x76f56000)
    libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x75104000)
如果有人感兴趣,我已将二进制文件的压缩版本上载到我的dropbox帐户,您可以在此处下载:


谢谢Jorge,为了让您的PhantomJS二进制文件在Raspbian上运行,而Raspbian仍然依赖于Wheeezy,我必须通过libjpeg开发工具和icu开发工具安装Jessie提供的libicu*52和libjpeg62。工作很好,但在编译之前失败了。谢谢