Using
- Ubuntu 16.04
- Ruby 2.0.0
- (gem) cucumber (1.3.20)
- (gem) cucumber-rails (1.4.2)
Initially I had
Could not find an executable ["phantomjs"] on your path. (Cliver::Dependency::NotFound)
Which was fixed with https://stackoverflow.com/a/31333531/849697
And then
Could not find an executable 'phantomjs' that matched the requirements '>= 1.8.1', '< 3.0'. Found versions were {"/usr/bin/phantomjs"=>"127.0.0.1"}. (Cliver::Dependency::VersionMismatch)
Which bizarrely seems to be giving the ip address where ought to be a version.
phantomjs
and phantomjs --version
both give
QXcbConnection: Could not connect to display 127.0.0.1:10.0
PhantomJS has crashed. Please read the bug reporting guide at
<http://phantomjs.org/bug-reporting.html> and file a bug report.
[1] 1919 abort (core dumped) phantomjs --version
(there is no --version
in the former)