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

CentOS - If you are getting this error while executing phantomjs on terminal

phantomjs: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
 
To remove this error.

# sudo yum install freetype
If you are still facing the error, Run
# sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6
Note :
If you are using ubuntu or debian, use apt-get install to install this package.

4 comments:

  1. Thank you for saving my day!

    ReplyDelete
  2. You save my day too. Thanks so much!!! =)

    ReplyDelete
  3. Thanks a lot. I was getting blank reponses from PhantomJS and run --version, got this error and found your page. Cheers!

    ReplyDelete
  4. You save my day too. Thanks so much!!! =)

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...