Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@MaxwellRebo

This comment has been minimized.

Copy link

MaxwellRebo commented Jul 8, 2014

This worked for me, after installing fontconfig (on Ubuntu 14). Thanks!

@sarathkumar123

This comment has been minimized.

Copy link

sarathkumar123 commented Oct 17, 2014

how to test the sreen resolution using this in ubuntu

@sarathkumar123

This comment has been minimized.

Copy link

sarathkumar123 commented Oct 17, 2014

pageres [ todomvc.com 1000x1000 --crop ] [ yeoman.io 500x500 ]
parse error
am getting like this
give any solution for this

@sawo

This comment has been minimized.

Copy link

sawo commented Nov 12, 2019

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

@wbotelhos

This comment has been minimized.

Copy link
Owner Author

wbotelhos commented Nov 12, 2019

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
You can’t perform that action at this time.