-
-
Save waltspence/85bdfc8c813a286f09255ca017a643e4 to your computer and use it in GitHub Desktop.
Install Phantom and CasperJS easily with this bash script
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
#PhantomJS Exec Path | |
PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs |
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 | |
# Important: use 'i686' instead of 'x86_64' | |
# | |
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724 | |
echo Installation of Phantomjs | |
cd /usr/local/share | |
sudo wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
sudo tar -xvf phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
sudo mv phantomjs-1.9.2-linux-x86_64 phantomjs-1.9.2 | |
sudo ln -s /usr/local/share/phantomjs-1.9.2/ /usr/local/share/phantomjs | |
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs | |
echo Installation of 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 Version of Phantomjs | |
phantomjs --version | |
echo Version of Casperjs | |
casperjs --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment