Skip to content

Instantly share code, notes, and snippets.

@cedricpim
Last active August 29, 2015 14:26
Show Gist options
  • Save cedricpim/3835b7026919a69d435b to your computer and use it in GitHub Desktop.
Save cedricpim/3835b7026919a69d435b to your computer and use it in GitHub Desktop.
Install PhantomJS 2 on debian/ubuntu
# 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