In my previous project, I used PhantomJS/CasperJS for automation test. It is really amazing for all front-end guys who need write unit test for verify user experiences (e.g: submit form, change link …). The below is steps to install PhantomJS and CasperJS in Ubuntu 14.04.


Install NodeJS, PhantomJS, CasperJS in Ubuntu 14.04

Install NodeJS, PhantomJS, CasperJS in Ubuntu 14.04


Get nodeJS from personal Repository to get the latest version.



sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get update

sudo apt-get install npm nodejs



Install NodeJS:

sudo apt-get install nodejs


Now, check with command:

npm -v

node -v



You can install CasperJS via NPM command:


sudo npm install -g casperjs


Install PhantomJS  (Download source, extract files, create soft-link to executable directory):

cd /usr/local/share

sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2

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

sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs

sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs

sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs



Check your installation with command:

phantomjs -v

'ubuntu' 카테고리의 다른 글

DigitalOcean 디지털 오션 초기셋팅  (0) 2015.09.04
리눅스에 윈도우 글꼴 설치  (0) 2015.01.29
우분투 ssh 설치 및 포트변경  (0) 2015.01.28
handlay 핸드레이 gcc 및 gdb  (0) 2014.07.03
우분투 설치 주소  (0) 2014.07.03
Posted by wakira
,