Getting the following error when trying to use phantomjs from ruby on Ubuntu:
Failure/Error: visit root_path
Cliver::Dependency::NotFound:
Could not fin
Apparently, the solution was to add phantomjs not only to the PATH, but also create links:
sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/bin/phantomjs
sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/local/share/phantomjs
Adjust the /home/myuser/phantomjs/bin/phantomjs paths to match the path to phantomjs binary on your machine.