PhantomJS/Casperjs install Centos

How to Install PhantomJS:

yum install -y glibc fontconfig freetype freetype-devel fontconfig-devel wget bzip2
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin

If successful:

root@server [/tmp]# which phantomjs
 /usr/local/bin/phantomjs
 root@server [/tmp]# phantomjs --version
 2.1.1
 root@server [/tmp]#

How to install CasperJS:

http://docs.casperjs.org/en/latest/installation.html

git clone git://github.com/casperjs/casperjs.git /usr/local/share/casperjs
ln -sf /usr/local/share/casperjs/bin/casperjs /usr/local/bin/casperjs

If succesful:

root@server [/tmp]# which casperjs
/usr/local/bin/casperjs
root@server [/tmp]# casperjs --version
1.1.4
root@server [/tmp]#