Last active
December 21, 2015 13:29
-
-
Save mickaelandrieu/6312724 to your computer and use it in GitHub Desktop.
Install phantomjs/casperjs on GNU/Linux (Stable)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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