Skip to content

Instantly share code, notes, and snippets.

@andrewslince
Last active April 23, 2020 08:17
Show Gist options
  • 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
@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