Skip to content

Instantly share code, notes, and snippets.

@inactivist
Last active July 18, 2019 08:30
Show Gist options
  • Save inactivist/4389bf521f1904afc5ad75937043de57 to your computer and use it in GitHub Desktop.
Save inactivist/4389bf521f1904afc5ad75937043de57 to your computer and use it in GitHub Desktop.
Install PhantomJS 2.x on Ubuntu 14.04 (and later)

Installing PhantomJS 2.x on Ubuntu is done manually at present. Here's a recipe I like.

  • Download PhantomJS latest stable http://phantomjs.org/download.html
  • Extract tarball contents into /usr/local/share
  • In this example, latest tarball is named phantomjs-2.1.1-linux-x86_64.tar.bz2 and will extract to /usr/local/share/phantomjs-2.1.1-linux-x86_64
PHANTOM_JS_FILES=/usr/local/share/phantomjs-2.1.1-linux-x86_64
sudo ln -s ${PHANTOM_JS_FILES}/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s ${PHANTOM_JS_FILES}/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s ${PHANTOM_JS_FILES}/bin/phantomjs /usr/bin/phantomjs

Resources

Install node.js and PhantomJS on Ubuntu 14.04

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