Last Updated: February 25, 2016
·
2.671K
· mpatrick

Installing PhantomJS 1.8.1 on Ubuntu 12.04 x64

Before you start, take a look that is this a installation for x64 OS's
If you need just a x86 package, download it at phantomJS official website or on google code.

http://phantomjs.googlecode.com/files
http://phantomjs.org/

Go to the SHARE directory
cd /usr/local/share

Push file from google code

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

Extract the files to directory

sudo tar xjf phantomjs-1.8.1-linux-x86_64.tar.bz2

Move files to Phantom's directory

sudo ln -s /usr/local/share/phantomjs-1.8.1-linux-x8664/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.8.1-linux-x8664/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.8.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs

DONE, at this momento you have PhantomJS installed on your Ubuntu!
For check if the installation was succesful just type:

phantomjs --version

1 Response
Add your response

sudo npm install -g phantomjs

over 1 year ago ·