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

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

你可能感兴趣的:(phantomjs)