Skip to content

wpscan installation via homebrew fails #1917

@mertzjames

Description

@mertzjames

Before submitting an issue, please make sure you fully read any potential error messages output and did some research on your own.

Subject of the issue

Installing wpscan using brew fails to fully install. It looks like there may be a dependency not getting installed beforehand?

Your environment

  • Version of WPScan: latest
  • Version of Ruby:
  • Operating System (OS): MacOS Sequoia (M4)

Steps to reproduce

Running brew install wpscanteam/tap/wpscan

Expected behavior

A clean install of wpscan ;)

Actual behavior

Installation failure with the following error messaging:

==> /opt/homebrew/Cellar/wpscan/3.8.27/bin/wpscan --update
Last 15 lines from /Users/kronos/Library/Logs/Homebrew/wpscan/post_install.01.wpscan:
        from /opt/homebrew/Cellar/wpscan/3.8.27/libexec/gems/bundler-2.6.8/lib/bundler/rubygems_ext.rb:25:in `<top (required)>'
        from /opt/homebrew/Cellar/wpscan/3.8.27/libexec/gems/bundler-2.6.8/lib/bundler.rb:10:in `require_relative'
        from /opt/homebrew/Cellar/wpscan/3.8.27/libexec/gems/bundler-2.6.8/lib/bundler.rb:10:in `<top (required)>'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
        from /opt/homebrew/Cellar/wpscan/3.8.27/libexec/gems/bundler-2.6.8/exe/bundle:16:in `<main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'bundler' (2.6.8) required by your /opt/homebrew/Cellar/wpscan/3.8.27/libexec/Gemfile.lock. (Gem::MissingSpecVersionError)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.6.8`
Checked in 'GEM_PATH=/Users/kronos/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/opt/homebrew/Cellar/wpscan/3.8.27/libexec/ruby/3.4.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:323:in `to_spec'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:42:in `require'
        from /opt/homebrew/Cellar/wpscan/3.8.27/libexec/gems/bundler-2.6.8/exe/bundle:16:in `<main>'
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall wpscanteam/tap/wpscan

What have you already tried

I've tried uninstalling and reinstalling. I've also tried running the suggested brew postinstall command as well. running wpscan --update or wpscan --help leads to the same failure.

Things you have tried (where relevant):

  • Update WPScan to the latest version [ ]
  • Update Ruby to the latest version [ ]
  • Ensure you can reach the target site using cURL [ ]
  • Proxied WPScan through a HTTP proxy to view the raw traffic [ ]
  • Ensure you are using a supported Operating System (Linux and macOS) [ x ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions