2017-11-14 3 views
0

実行しphantomjsphantomjs - エラー共有ライブラリをロード中:libjpeg.so.8

コード

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 

答えて

0

libjpeg.so.8が所属しているとき、私はエラーを取得しますDebian Jessie環境。 hereライブラリをダウンロードし、必要なフォルダの中に入れてください。

関連する問題