Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Created May 17, 2013 20:57
Show Gist options
  • Save garlandkr/5601916 to your computer and use it in GitHub Desktop.
Save garlandkr/5601916 to your computer and use it in GitHub Desktop.
PhantomJS and CasperJS install on Ubuntu Precise 12.04
#!/bin/sh
cd /usr/local/src
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
wget https://github.com/n1k0/casperjs/tarball/1.0.2
tar xvjpf phantomjs-1.9.0-linux-x86_64.tar.bz2tar zxvf 1.0.2ln -s /usr/local/src/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
ln -s /usr/local/src/n1k0-casperjs-bc0da16/bin/casperjs /usr/local/bin/casperjs
phantomjs --version
casperjs --version
@huyb1991
Copy link

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 xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
phantomjs --version

Install capserJS:
sudo git clone git://github.com/n1k0/casperjs.git /usr/local/src/casperjs
cd /usr/local/src/casperjs
git checkout tags/1.0.2
ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs
casperjs --version

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