Getting the following error when trying to use phantomjs from ruby on Ubuntu:
Failure/Error: visit root_path Cliver::Dependency::NotFound: Could not fin
Instead of building locally, use homebrew on your mac with brew install phantomjs and all the paths will link after. I had this error myself, and you'll get the links for free and have the ability to update easily.
brew install phantomjs