61 posts / categories / feed

Installing PhantomJS on Ubuntu

Ubuntu package comes with a PhantomJS 1.4, but I wanted the 1.7 version. After a few attempts, I managed to setup PhantomJS 1.7 on my Ubuntu VM.

Steps as per below:


cd ~/

wget http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-x86_64.tar.bz2

mv ~/phantomjs-1.7.0-linux-x86_64.tar.bz2 /usr/local/share

cd /usr/local/share

sudo tar xvf phantomjs-1.7.0-linux-x86_64.tar.bz2

sudo ln -s /usr/local/share/phantomjs-1.7.0-linux-x86_64 /usr/local/share/phantomjs

sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs

phantomjs --version

Reference:

http://devblog.hedtek.com/2012/04/phantomjs-on-ubuntu.html

http://ericterpstra.com/2012/10/install-yeoman-and-all-its-dependencies-in-ubuntu-linux/