urbanadventurer / WhatWeb

Next generation web scanner

Home Page:https://www.morningstarsecurity.com/research/whatweb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install error

ocervell opened this issue · comments

Getting an installation error on Ubunu 20.04.5 LTS

sudo make install
# upgrade/installation will leave the my-plugins folder
rm -Rf /usr/bin/whatweb /usr/share/man/man1/whatweb.1 /usr/share/man/man1/whatweb.1.gz /usr/share/doc/whatweb /usr/share/whatweb/plugins-disabled /usr/share/whatweb/plugins /usr/share/whatweb/lib /usr/share/whatweb/plugin-development /usr/share/whatweb/addons
install -d /usr/share/man/man1
install -p -D -m 644 whatweb.1 /usr/share/man/man1/whatweb.1
gzip -f /usr/share/man/man1/whatweb.1
install -d /usr/share/whatweb
install -d /usr/share/doc/whatweb
install -d /usr/bin
# copy whatweb into LIBPATH/NAME/ and create a symbolic link in the BINPATH
install -p -D -m 755 whatweb /usr/share/whatweb
ln -s /usr/share/whatweb/whatweb /usr/bin/whatweb
cp -p -r my-plugins /usr/share/whatweb/
cp -p -r plugins-disabled plugins lib plugin-development addons /usr/share/whatweb/
cp -p -r CHANGELOG.md INSTALL.md LICENSE README.md whatweb.xsl /usr/share/doc/whatweb/
bundle install
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Using rake 13.0.6
Using public_suffix 5.0.1
Using ast 2.4.2
Using bundler 2.4.6
Using thor 1.2.1
Using coderay 1.1.3
Using docile 1.4.0
Using ipaddr 1.2.5
Using json 2.6.3
Using method_source 1.0.0
Using minitest 5.17.0
Using parallel 1.22.1
Using stringio 3.0.5
Fetching rainbow 3.1.1
Fetching rb-readline 0.5.5
Installing rainbow 3.1.1
Installing rb-readline 0.5.5
Fetching regexp_parser 2.7.0
Fetching rexml 3.2.5
Installing regexp_parser 2.7.0
Installing rexml 3.2.5
Fetching ruby-progressbar 1.11.0
Fetching unicode-display_width 2.4.2
Installing ruby-progressbar 1.11.0
Installing unicode-display_width 2.4.2
Fetching simplecov-html 0.12.3
Fetching simplecov_json_formatter 0.1.4
Installing simplecov_json_formatter 0.1.4
Using addressable 2.8.1
Using bundler-audit 0.9.1
Using parser 3.2.0.0
Using pry 0.14.2
Installing psych 5.1.0 with native extensions
Installing simplecov-html 0.12.3
Fetching rubocop-ast 1.24.1
Installing rubocop-ast 1.24.1
Fetching simplecov 0.22.0
Installing simplecov 0.22.0
Fetching rubocop 1.45.1
Installing rubocop 1.45.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.7.0/gems/psych-5.1.0/ext/psych
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20230209-8813-1pgzw47.rb extconf.rb
checking for yaml.h... no
yaml.h not found
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.7
        --with-libyaml-source-dir
        --without-libyaml-source-dir
        --with-yaml-0.1-config
        --without-yaml-0.1-config
        --with-pkg-config
        --without-pkg-config
        --with-libyaml-dir
        --without-libyaml-dir
        --with-libyaml-include
        --without-libyaml-include=${libyaml-dir}/include
        --with-libyaml-lib
        --without-libyaml-lib=${libyaml-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/psych-5.1.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.7.0/gems/psych-5.1.0 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/psych-5.1.0/gem_make.out

  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:97:in `run'
  /usr/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
  /usr/lib/ruby/2.7.0/tempfile.rb:291:in `open'
  /usr/lib/ruby/2.7.0/rubygems/ext/ext_conf_builder.rb:30:in `build'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:167:in `block in build_extension'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:163:in `synchronize'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:163:in `build_extension'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:208:in `block in build_extensions'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:205:in `each'
  /usr/lib/ruby/2.7.0/rubygems/ext/builder.rb:205:in `build_extensions'
  /usr/lib/ruby/2.7.0/rubygems/installer.rb:844:in `build_extensions'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/rubygems_gem_installer.rb:28:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/source/rubygems.rb:200:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/installer/gem_installer.rb:54:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/installer/parallel_installer.rb:155:in `do_install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/installer/parallel_installer.rb:146:in `block in worker_pool'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/worker.rb:62:in `apply_func'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/worker.rb:57:in `block in process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/worker.rb:54:in `loop'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/worker.rb:54:in `process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.4.6/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing psych (5.1.0), and Bundler cannot continue.

In Gemfile:
  rdoc was resolved to 6.5.0, which depends on
    psych
make: *** [Makefile:34: install] Error 5