Last active
August 29, 2015 14:10
-
-
Save nedSaf/0af08a05cbcfa382799d to your computer and use it in GitHub Desktop.
Install PhantomJs
This file contains 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
- 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