Skip to content

Instantly share code, notes, and snippets.

@srounce
Forked from wbotelhos/phantomjs_intaller.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save srounce/7bc76417f56c024ee658 to your computer and use it in GitHub Desktop.
Save srounce/7bc76417f56c024ee658 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.0-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
phantomjs -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment