Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installs CasperJS in your Debian/Ubuntu System.
#!/usr/bin/env bash
# Installs CasperJS in your Debian/Ubuntu System. Idea taken from http://docs.casperjs.org/en/latest/installation.html
#
# After you installed PhantomJS with https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d
# run this script as root with:
# sudo sh install_casperJs.sh
CASPER_JS="casperjs"
cd /usr/local/share/
git clone git://github.com/casperjs/$CASPER_JS.git
cd /usr/local/share/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/local/share/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/local/bin/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/bin/$CASPER_JS
echo "Installed CasperJS version:" && $CASPER_JS --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.