Skip to content

Building PhantomJS

Christopher Copper edited this page May 21, 2014 · 2 revisions

Building PhantomJS

The latest instructions can be found at http://phantomjs.org/build.html. For posterity the instructions initially used will be posted below.

PhantomJs was installed and built into the /opt directory.

cd /opt
sudo apt-get update
sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
sudo git checkout 1.9
sudo ./build.sh
cd bin
sudo ln phantomjs /usr/bin

Clone this wiki locally