Skip to content

Instantly share code, notes, and snippets.

@nedSaf
Last active August 29, 2015 14:10
Show Gist options
  • Save nedSaf/0af08a05cbcfa382799d to your computer and use it in GitHub Desktop.
Save nedSaf/0af08a05cbcfa382799d to your computer and use it in GitHub Desktop.
Install PhantomJs
- sudo apt-get update
- sudo apt-get install build-essential chrpath libssl-dev libxft-dev
- sudo apt-get install libfreetype6 libfreetype6-dev
- sudo apt-get install libfontconfig1 libfontconfig1-dev
- export PHANTOM_JS="phantomjs-1.9.7-linux-x86_64"
- wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
- sudo mv $PHANTOM_JS.tar.bz2 /usr/local/share/
- sudo tar xvjf /usr/local/share/$PHANTOM_JS.tar.bz2
- sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/share/phantomjs
- sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin/phantomjs
- sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment