[centOS] 安裝 phantomjs 錯誤,phantomjs: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

在 centOS 上面安裝 phantomjs 遇到了以下的錯誤
phantomjs: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

這是因為缺少 phantomjs 的相依套件

解決方法:

sudo yum install fontconfig

參考資料:

http://sameerhalai.com/blog/how-to-install-phantomjs-on-a-centos-server/

Leave a Reply