Skip to content

Instantly share code, notes, and snippets.

@shapeshifta78
Created August 13, 2012 13:52
Show Gist options
  • Select an option

  • Save shapeshifta78/3340982 to your computer and use it in GitHub Desktop.

Select an option

Save shapeshifta78/3340982 to your computer and use it in GitHub Desktop.
Phantom.js Installation made easier :)
#!/bin/sh
#version details
VERSION=1.6.1
PLATFORM=linux
ARCH=i686
FILE="phantomjs-$VERSION-$PLATFORM-$ARCH-dynamic"
#download binaries
wget -O $HOME/$FILE.tar.bz2 http://phantomjs.googlecode.com/files/$FILE.tar.bz2
tar jxf $HOME/$FILE.tar.bz2 -C $HOME
#create symlinks
sudo ln -s $HOME/$FILE/bin/phantomjs /usr/local/bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment