Getting the following error when trying to use phantomjs from ruby on Ubuntu:
Failure/Error: visit root_path Cliver::Dependency::NotFound: Could not fin
For Mac Os El Capitan use following command:
Mac Os El Capitan
npm install -g phantomjs
Above command only works if you have installed npm, for installing npm:
npm
brew install npm