Skip to content

Instantly share code, notes, and snippets.

@mickaelandrieu
Last active December 21, 2015 13:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickaelandrieu/6312724 to your computer and use it in GitHub Desktop.
Save mickaelandrieu/6312724 to your computer and use it in GitHub Desktop.
Install phantomjs/casperjs on GNU/Linux (Stable)
#!/bin/bash
# `` sudo sh install.sh ``
# Stable environnement
# Important: use 'i686' instead of 'x86_64'
# For Development environnement see also : https://gist.github.com/mickaelandrieu/6312683
echo Installation de Phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2
sudo tar -xvf phantomjs-1.8.2-linux-x86_64.tar.bz2
sudo mv phantomjs-1.8.2-linux-x86_64 phantomjs-1.8.2
sudo ln -s /usr/local/share/phantomjs-1.8.2/ /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
echo Installation de Casperjs
cd /usr/local/share
sudo git clone -b 1.0 git://github.com/n1k0/casperjs.git
cd casperjs
ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
echo Version de Phantomjs
phantomjs --version
echo Version de Casperjs
casperjs --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment