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