Created
March 6, 2014 10:27
-
-
Save bajanReece/9386944 to your computer and use it in GitHub Desktop.
Install PhantomJS and CasperJS on Ubuntu 12.04
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
# First install PhantomJS | |
cd /usr/local/share | |
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 | |
sudo tar jxvf phantomjs-1.9.7-linux-x86_64.tar.bz2 | |
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64 /usr/local/share/phantomjs | |
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs | |
# Test that PhantomJS is installed and working | |
which phantomjs | |
# should produce: | |
# /usr/local/bin/phantomjs | |
phantomjs --version | |
# should produce | |
# 1.9.7 | |
# Then install CasperJS | |
/usr/local/src/ | |
sudo git clone https://github.com/n1k0/casperjs.git | |
sudo ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs | |
# Test that CasperJS is installed and working | |
which casperjs | |
# should produce: | |
# /usr/local/bin/casperjs | |
casperjs --version | |
# should produce something like | |
# 1.1.0-beta3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment