繁体   English   中英

phantomjs-加载共享库时出错:libjpeg.so.8

[英]phantomjs - error while loading shared libraries: libjpeg.so.8

运行phantomjs时出现错误

var path = require('path');
var childProcess = require('child_process');
var phantomjs = require('/var/bin/node_modules/phantomjs25-beta/bin/phantomjs');
var binPath = phantomjs.path

console.log('test');

错误

# node phantomjs.js
test
/var/bin/node_modules/phantomjs25-beta/lib/phantom/bin/phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

libjpeg.so.8属于Debian Jessie环境。 您可以在此处下载该库,并将其放入应该需要的文件夹中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM