Skip to content

Instantly share code, notes, and snippets.

@xhip
Last active August 29, 2015 14:06
Show Gist options
  • Save xhip/51dd5b2ea5d2ae45519b to your computer and use it in GitHub Desktop.
Save xhip/51dd5b2ea5d2ae45519b to your computer and use it in GitHub Desktop.
How to install PhantomJS on Debian

How to install PhantomJS on Ubuntu

Version: 1.9.7

First, Get it from the PhantomJS website.

Update first and install the base: (root here)

apt-get update
apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev

Lets Install:

git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh

Now, It (should) have PhantomJS properly on your system.

phantomjs --version

These packages needed by PhantomJS to work correctly:

sudo apt-get install libfreetype6 libfreetype6-dev
sudo apt-get install libfontconfig1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment