Bismillah
sudo apt-get install ttf-mscorefonts-installer build-essential g++ flex bison gperf ruby perl
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev
libpng-dev libjpeg-dev
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 2.0
./build.sh