您的位置:首页 > Web前端 > JavaScript

phantomjs: error while loading shared libraries: libfreetype.so.6

2015-12-16 17:53 711 查看
CentOS - 执行phantomjs报错

报错信息:phantomjs: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

解决方法:

执行

# sudo yum install freetype

如果还报错

执行

# sudo yum install fontconfig freetype libfreetype.so.6

如果使用 ubuntu 或者 debian

use apt-get install to install this package

转自 http://linuxamination.blogspot.co.id/2014/04/phantomjs-error-while-loading-shared.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: