Forked from andrewslince/install casperjs (and phantomjs) on ubuntu
Last active
October 8, 2018 19:18
-
-
Save onajafi/60499a2a7749fe4af4fa19d2b377bc08 to your computer and use it in GitHub Desktop.
simple tutorial for installing casperjs on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install phantomjs | |
cd /usr/local/share | |
sudo wget https://github.com/ariya/phantomjs/archive/2.1.1.tar.gz | |
sudo tar -xzvf 2.1.1.tar.gz | |
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | |
sudo apt-get install fontconfig | |
# install casperjs | |
mkdir -m777 /var/www # Make sure the folder exists | |
cd /var/www/ | |
git clone git://github.com/n1k0/casperjs.git | |
cd casperjs | |
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs | |
# remove tar file of phantomjs | |
sudo rm -f /usr/local/share/2.1.1.tar.gz | |
---------------------- | |
references: | |
http://kb.solarvps.com/ubuntu/installing-phantomjs-on-ubuntu-12-04-lts/ | |
http://docs.casperjs.org/en/latest/installation.html | |
https://gist.github.com/andrewslince/4e5f9aba78e175d8fab1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment