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

时间:2017-11-14 17:13:02

标签: node.js linux phantomjs shared-libraries

运行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

1 个答案:

答案 0 :(得分:0)

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