Skip to content

Instantly share code, notes, and snippets.

@IskenHuang
Forked from wbotelhos/phantomjs_intaller.sh
Created January 27, 2014 03:05
Show Gist options
  • Save IskenHuang/8642691 to your computer and use it in GitHub Desktop.
Save IskenHuang/8642691 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
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