Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Last active August 29, 2015 14:05
Install phantom in ubuntu
#!/usr/bin/env bash
set -e
PHANTOM_FILE=phantomjs-1.9.7-linux-x86_64
cd /usr/local/share
curl -Lo $PHANTOM_FILE.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_FILE.tar.bz2
tar xjf $PHANTOM_FILE.tar.bz2
ln -s /usr/local/share/$PHANTOM_FILE/bin/phantomjs /usr/local/share/phantomjs
ln -s /usr/local/share/$PHANTOM_FILE/bin/phantomjs /usr/local/bin/phantomjs
ln -s /usr/local/share/$PHANTOM_FILE/bin/phantomjs /usr/bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment