Skip to content

Instantly share code, notes, and snippets.

@ntamvl
Forked from dominicsayers/phantomjs.md
Created October 3, 2015 04:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntamvl/452b68e8e828499ac0d1 to your computer and use it in GitHub Desktop.
Save ntamvl/452b68e8e828499ac0d1 to your computer and use it in GitHub Desktop.
Installing PhantomJS on Ubuntu

(updated version of http://www.joyceleong.com/log/installing-phantomjs-on-ubuntu/)

  1. export P=phantomjs-1.9.8-linux-x86_64
  2. cd /usr/local/share
  3. sudo wget https://bitbucket.org/ariya/phantomjs/downloads/$P.tar.bz2
  4. sudo tar xvf $P.tar.bz2
  5. sudo ln -s /usr/local/share/$P /usr/local/share/phantomjs
  6. sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
  7. phantomjs --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment