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
Written by Patrick Müller
Related protips
1 Response
sudo npm install -g phantomjs