Skip to content

Instantly share code, notes, and snippets.

@qrush
Forked from pboling/PhantomJS Install.md
Created August 10, 2016 02:29
Show Gist options
  • Select an option

  • Save qrush/5bc71b1c9771108d05d880025c84fdc9 to your computer and use it in GitHub Desktop.

Select an option

Save qrush/5bc71b1c9771108d05d880025c84fdc9 to your computer and use it in GitHub Desktop.

Revisions

  1. @pboling pboling renamed this gist Sep 18, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @pboling pboling created this gist Sep 18, 2015.
    19 changes: 19 additions & 0 deletions PhantomJS Install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    ## PhantomJS

    Install phantomjs (http://phantomjs.org)

    `brew` has a recipe for phantomjs, but it has moved on to version 2.0.0, and we still require 1.8.2 (at newest), and we can't get that old and dirty with `brew` anymore.

    On a Mac:

    mkdir -p ~/root
    wget https://phantomjs.googlecode.com/files/phantomjs-1.8.2-macosx.zip -O ~/root/phantomjs-1.8.2-macosx.zip
    cd ~/root
    unzip phantomjs-1.8.2-macosx.zip
    echo 'export PATH=~/root/phantomjs-1.8.2-macosx/bin:$PATH' >> ~/.bashrc
    source ~/.bashrc

    Now when you run `which phantomjs` you should see the `phantomjs` executable

    which phantomjs
    /Users/pboling/root/phantomjs-1.8.2-macosx/bin/phantomjs