alwex / php-casperjs

simple PHP wrapper for CasperJS
MIT License
182 stars 71 forks source link

There is an issue with Ubuntu, can not find Casperjs #41

Open antoiba86 opened 7 years ago

antoiba86 commented 7 years ago

OK, I will write it here because I was crazy about this error. It's a problem with UBUNTU, fuck.

This solution save me the week. From ariya I read this

Debian/Ubuntu has a modified version of PhantomJS that can work headlessly, hence the problem with QXcb. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277 for details.

Unfortunately, this is not something that we (=PhantomJS team) can fix.

And the solution is here

@3zzy the steps I used are as follows: wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2 tar -xvf phantomjs-2.1.1-linux-x86_64.tar cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs

Does this help your case? https://github.com/ariya/phantomjs/issues/14376#issuecom

ment-246310115