Skip to content

Instantly share code, notes, and snippets.

@tamaspap
Created October 1, 2016 12:54
Show Gist options
  • Save tamaspap/f92a4725d56b2251a155f56b9612bf2e to your computer and use it in GitHub Desktop.
Save tamaspap/f92a4725d56b2251a155f56b9612bf2e to your computer and use it in GitHub Desktop.
Install phantomjs on ubuntu 14.04
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
## system wide
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
phantomjs -v
@stephan-v
Copy link

Probably needs sudo apt-get -y install libfontconfig? Otherwise it wil result in:

phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

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