Last active
August 29, 2015 14:05
-
-
Save jfromaniello/26899be0cad9a7e8741d to your computer and use it in GitHub Desktop.
Install phantom in ubuntu
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
#!/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