Skip to content

Instantly share code, notes, and snippets.

@wbotelhos
Last active December 12, 2019 12:08
Show Gist options
  • Save wbotelhos/6643188 to your computer and use it in GitHub Desktop.
Save wbotelhos/6643188 to your computer and use it in GitHub Desktop.
Installing PhantomJS 1.9 on Ubuntu 12/14.xx x64/x86
#!/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
@sawo
Copy link

sawo commented Nov 12, 2019

I believe a keyword sudo is missing at the beginning of line 13. See my gist

@wbotelhos
Copy link
Author

Thanks for your feedback @sarathkumar123 and @sawo

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