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 |
how to test the sreen resolution using this in ubuntu
pageres [ todomvc.com 1000x1000 --crop ] [ yeoman.io 500x500 ]
parse error
am getting like this
give any solution for this
I believe a keyword sudo is missing at the beginning of line 13. See my gist
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
This worked for me, after installing fontconfig (on Ubuntu 14). Thanks!