Skip to content

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

Published: at 01:54 PM (1 min read)

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

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

解決方法:

[code lang=text] sudo yum install fontconfig [/code]

參考資料:

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