Created
March 20, 2017 04:42
-
-
Save dled/7170e3cc340493ea0ebdd5e89d89ab8f to your computer and use it in GitHub Desktop.
PhantomJS + CasperJS
This file contains 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
# installing phantomjs & casperjs on ubuntu-16.04.2 lts | |
# assumes node & npm are pre-installed | |
# 2017 03 19 | |
# install developer libs | |
sudo apt-get install build-essential g++ flex bison gperf ruby perl \ | |
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \ | |
libpng-dev libjpeg-dev python libx11-dev libxext-dev | |
# install phantomjs from binaries | |
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 | |
mv -v phantomjs-2.1.1-linux-x86_64 .phantomjs | |
# include in path | |
cd ~/bin && ln -s ~/.phantomjs/bin/phantomjs | |
# install phantomjs from git | |
# git install | |
# git clone git://github.com/ariya/phantomjs.git | |
# cd phantomjs | |
# git checkout 2.1.1 | |
# git submodule init | |
# git submodule update | |
# install casperjs via node from current github master | |
# npm i casperjs -g git+https://github.com/casperjs/casperjs.git | |
# install casperjs from git | |
git clone git://github.com/casperjs/casperjs.git | |
cd casperjs | |
ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs | |
# verify installs | |
phantomjs --version | |
casperjs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment