Skip to content

Instantly share code, notes, and snippets.

@andrewslince
Last active April 23, 2020 08:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save andrewslince/4e5f9aba78e175d8fab1 to your computer and use it in GitHub Desktop.
Save andrewslince/4e5f9aba78e175d8fab1 to your computer and use it in GitHub Desktop.
simple tutorial for installing casperjs on ubuntu
# install phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
sudo apt-get install fontconfig
# install casperjs
cd /var/www/
git clone git://github.com/n1k0/casperjs.git
cd casperjs
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
# remove tar file of phantomjs
rm phantomjs-1.9.2-linux-x86_64.tar.bz2
----------------------
references:
http://kb.solarvps.com/ubuntu/installing-phantomjs-on-ubuntu-12-04-lts/
http://docs.casperjs.org/en/latest/installation.html
@mrroot5
Copy link

mrroot5 commented Oct 25, 2017

It works for PhantomJS 2.1.1 and CasperJS 1.1.4 on Ubuntu 16.04.

I updated you gist with last phantom and casper versions: My forked gist

Thanks

@GiorgosK
Copy link

Have install on ubuntu 18.04 with simpler method
https://gist.github.com/GiorgosK/f097053d4e941293bcbc93ed406ab422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment