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
Thanks for the tip! Unfortunately, that doesn't seem to be complete. Now, when I try
phantomjs -v
it gives me aSegmentation fault: 11
error. And when I try to run my specs, it says "The detector # failed to detect theversion of the executable at '/Users/petercormack/root/phantomjs-1.8.2-macosx/bin/phantomjs'"