-
-
Save paulsheldrake/385c8c0982b005167147 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
PHANTOM_JS="phantomjs-1.9.8-linux-x86_64" | |
sudo apt-get install -y build-essential chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev | |
cd ~ | |
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS.tar.bz2 /usr/local/share/ | |
cd /usr/local/share/ | |
sudo tar xvjf $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 | |
sudo rm -fr $PHANTOM_JS.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment