Last active
December 12, 2019 12:08
-
-
Save wbotelhos/6643188 to your computer and use it in GitHub Desktop.
Installing PhantomJS 1.9 on Ubuntu 12/14.xx x64/x86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
I believe a keyword sudo is missing at the beginning of line 13. See my gist