Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rpossan/bc48d43552a6d34e4dfb190b437b25b6 to your computer and use it in GitHub Desktop.
Save rpossan/bc48d43552a6d34e4dfb190b437b25b6 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y
sudo apt-get install libfreetype6 libfreetype6-dev -y
sudo apt-get install libfontconfig1 libfontconfig1-dev -y
cd ~
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
phantomjs --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment