Skip to content

Instantly share code, notes, and snippets.

@len0rd
Forked from mickaelandrieu/install.sh
Last active September 26, 2017 13:58
Show Gist options
  • Save len0rd/5bc2d401127acf0e711230f6e33ed074 to your computer and use it in GitHub Desktop.
Save len0rd/5bc2d401127acf0e711230f6e33ed074 to your computer and use it in GitHub Desktop.
Install phantomjs/casperjs on GNU/Linux
#!/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
@len0rd
Copy link
Author

len0rd commented Sep 26, 2017

updated to latest version of phantom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment