It looks like that metasploit seems to require win32api... well an ifdef seems missing somewhere. Same problem with mfsdb ``` msfconsole > Bundler could not find compatible versions for gem "win32api": In Gemfile: metasploit-framework was resolved to 6.1.24, which depends on win32api Could not find gem 'win32api', which is required by gem 'metasploit-framework', in any of the sources. ```
Did you try to run "bundle install" in /usr/local/share/metasploit? Metasploit needs this after each update so that the rubygems are being updated.
Thank you for your suggestion. This resolves my issue. Can a fix to this effect be added to any of: * the post-installation script, so it happens automagically on installation or upgrade? * the post-installation message, so the the user is reminded to do it manually on installation or upgrade? * the error message diagnostic (probably least preferable option)? Thanks again!
(In reply to Jim Long from comment #2) > * the post-installation message, so the the user is reminded to do it manually on installation or upgrade? This is worth a pkg-message!
^Triage: Reporter is committer, assign accordingly.
Created attachment 234270 [details] pkg-message patch Patch to include instructions for installation of win32api
Attached is a pkg-message patch to include the instructions for win32api installation. Since this collection requires the intended unprivileged users to install the dependencies, there wasn't a good way to include automated installation via the port, hence the inclusion of the recommended pkg-message file. Thank you!
Thank you! Your work in bringing this software to the community is appreciated.
Thanks! Once I see the pkg-message patch has been accepted and committed, I'll submit a separate ticket for an update to the newest Metasploit version as well.
Loïc Bartoletti, if you have commit entitlements, can you please update the port with the attached patch to address the reported bug? Thank you!
Patch has been provided against this bug ticket - Please merge into branch Thank you.
mmm, I get a problem using bundle: ``` /usr/local/share/metasploit bundle install ✔ 19:01:24 Following files may not be writable, so sudo is needed: /usr/local/share/metasploit Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle config set --local path 'vendor/bundle' bundle install to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. Password: ``` Even after: bundle config set --local path 'vendor/bundle' there is the same error