whatweb script complains about a missing dependency
opennota opened this issue · comments
Despite my having successfully run bundle install
, whatweb keeps on complaining that the addressable
gem is missing.
I'm on Debian 10.5.
~/Downloads/WhatWeb-0.5.2 $ bundle install
Using rake 13.0.1
Using public_suffix 4.0.5
Using addressable 2.7.0
Using ast 2.4.1
Using bundler 1.17.3
Using thor 1.0.1
Using bundler-audit 0.7.0.1
Using coderay 1.1.3
Using ipaddr 1.2.2
Using json 2.3.1
Using method_source 1.0.0
Using minitest 5.14.1
Using parallel 1.19.2
Using parser 2.7.1.4
Using pry 0.13.1
Using rainbow 3.0.0
Using rb-readline 0.5.5
Using rdoc 6.2.1
Using regexp_parser 1.7.1
Using rexml 3.2.4
Using rubocop-ast 0.3.0
Using ruby-progressbar 1.10.1
Using unicode-display_width 1.7.0
Using rubocop 0.89.1
Bundle complete! 10 Gemfile dependencies, 24 gems now installed.
Bundled gems are installed into `./path`
~/Downloads/WhatWeb-0.5.2 $ ./whatweb https://google.com
WhatWeb is not installed and is missing dependencies.
The following gems are missing:
- addressable
To install run the following command from the WhatWeb folder:
'bundle install'
What do you see if you run gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.3.4)
bundler (1.17.3)
cmath (default: 1.0.0)
csv (default: 1.0.0)
date (default: 1.0.0)
dbm (default: 1.0.0)
did_you_mean (1.2.1)
etc (default: 1.0.0)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.0.2)
gdbm (default: 2.0.0)
io-console (default: 0.4.6)
ipaddr (default: 1.2.0)
json (default: 2.1.0)
minitest (5.11.3)
molinillo (0.6.4)
net-http-persistent (2.9.4)
net-telnet (0.1.1)
openssl (default: 2.1.2)
power_assert (1.1.1)
psych (default: 3.0.2)
rake (12.3.1)
rdoc (default: 6.0.1)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
stringio (default: 0.0.1)
strscan (default: 1.0.0)
test-unit (3.2.8)
thor (0.19.4)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
$ gem --version
2.7.6.2
Do you have multiple versions of Ruby installed?
Based on the output above, addressable
was installed with bundle install
, but it is not present in gem list
.
If you're using multiple versions of Ruby, you will need to ensure you're installing the gems with the correct version of bundler
.
ie,
bundle2.7 install
ruby2.7 ./whatweb
Yes, there are ruby2.1 and ruby2.5 installed. But while bundler depends on ruby2.1, both these commands somehow complain about missing dependencies:
$ ruby2.1 ./whatweb
WhatWeb is not installed and is missing dependencies.
The following gems are missing:
- addressable
- ipaddr
$ ruby2.5 ./whatweb
WhatWeb is not installed and is missing dependencies.
The following gems are missing:
- addressable
There are no other ruby versions installed.