Last active
August 29, 2015 14:26
-
-
Save cedricpim/3835b7026919a69d435b to your computer and use it in GitHub Desktop.
Install PhantomJS 2 on debian/ubuntu
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
# Install dependencies for PhantomJS | |
sudo apt-get -y install build-essential g++ flex bison gperf ruby perl \ | |
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \ | |
libpng-dev libjpeg-dev python libx11-dev libxext-dev | |
# Directory to install PhantomJS | |
cd /usr/local/share | |
sudo git clone git://github.com/ariya/phantomjs.git | |
cd phantomjs | |
sudo git checkout 2.0 | |
sudo ./build.sh --confirm --jobs 1 | |
sudo ln -sf /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment