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/


Previous Post
[nginx] 移除不必要的預設 header,"Server" 版本
Next Post
[javascript] 取網址 get 的 值(key-value),get query key/value