2

I installed phantomjs using ap-get on ubuntu, when I try to get the version of phantomjs

phantomjs --version

I get this error and warning:

Fontconfig error: Cannot load default config file

[WARNING] phantomjs: cannot connect to X server

I tried to install fonconfig from the source I get the same error.

Any solution to avoid this error. Thanks

Community
  • 1
  • 1
Hocine Ben
  • 1,449
  • 2
  • 11
  • 19
  • Not sure how you installed phantomjs with apt-get but [this article](http://www.pandamatak.com/people/anand/blog/2007/08/fixing_fontconfig_on_linux_wit.html) might help. – Nima Dec 05 '14 at 17:19
  • Having this issue on a vagrant vvv-apache box. – atwellpub May 26 '15 at 02:46

0 Answers0