Skip to content

Instantly share code, notes, and snippets.

@mlocher
Last active September 7, 2015 11:56
Show Gist options
  • Save mlocher/62a7895c7b6058219703 to your computer and use it in GitHub Desktop.
Save mlocher/62a7895c7b6058219703 to your computer and use it in GitHub Desktop.
Install PhantomJS
#!/bin/bash
#
# NOTICE
# A new and updated version of this script is provided at
# https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh
# Please switch to that version instead!
PHANTOMJS_VERSION="1.9.8"
# clean old version and setup directories
rm -rf ~/.phantomjs
mkdir ~/.phantomjs
# download and extract new version
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 -O ~/phantomjs.tar.bz2
tar -xaf ~/phantomjs.tar.bz2 --strip-components=1 -C ~/.phantomjs
# cleanup
rm -f ~/phantomjs.tar.bz2
@mlocher
Copy link
Author

mlocher commented Sep 7, 2015

Please use the version available at https://github.com/codeship/scripts/blob/master/packages/phantomjs.sh instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment