Last active
September 5, 2019 09:29
-
-
Save mynameiskreang/92074d36420a08c6a0e4a5eaa58635fe 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 | |
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 | |
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo mv phantomjs-2.1.1-linux-x86_64 /usr/local/share | |
sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/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