簡體   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