Skip to content

Instantly share code, notes, and snippets.

@shapeshed
Created April 22, 2013 10:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save shapeshed/5433860 to your computer and use it in GitHub Desktop.
Save shapeshed/5433860 to your computer and use it in GitHub Desktop.
PhantomJS & CasperJS install script Tested on Ubuntu 12.04 (32-bit)
#!/bin/sh
cd /usr/local/share
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-i686.tar.bz2
tar -xjf /usr/local/share/phantomjs-1.9.0-linux-i686.tar.bz2
sudo ln -sf /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/local/bin/phantomjs
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
phantomjs --version
casperjs --version
@tartavull
Copy link

really usefull

@huyb1991
Copy link

That's also work in my case on vagrant box add precise64 (Ubuntu 12.04 64-bit)

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