-
-
Save len0rd/5bc2d401127acf0e711230f6e33ed074 to your computer and use it in GitHub Desktop.
Install phantomjs/casperjs on GNU/Linux
This file contains 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 `` | |
# Developement environnement | |
# | |
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724 | |
echo Install Phantomjs | |
cd /usr/local/share | |
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo mv phantomjs-2.1.1-linux-x86_64 phantomjs-2.1.1 | |
sudo ln -s /usr/local/share/phantomjs-2.1.1/ /usr/local/share/phantomjs | |
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs | |
echo Install Casperjs | |
cd /usr/local/share | |
sudo git clone -b master git://github.com/n1k0/casperjs.git | |
cd casperjs | |
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs | |
echo Phantomjs Version: | |
phantomjs --version | |
echo Casperjs Version | |
casperjs --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated to latest version of phantom