How to Fix Metasploit error – requires the bundler gem to be installed? [Solved]

Updated on September 2, 2017

Question:

I was stuck with an error “Metasploit requires the bundler gem to be installed” while executing msfconsole from the Metasploit framework. The issue here is, I did tried installing bundler gem using ‘gem install bundler’, but still msfconsole script produces the same error.

Here’s the snapshot of the error message:

# ./msfconsole
[*] Metasploit requires the Bundler gem to be installed
    $ gem install bundler
# gem install bundler
Successfully installed bundler-1.12.5
Parsing documentation for bundler-1.12.5
1 gem installed
# ./msfconsole
[*] Metasploit requires the Bundler gem to be installed
 $ gem install bundler

How to solve this error?

Solution:

As suggested in the error message, you should run ‘gem install bundler’ and ‘bundle install’ commands.

$ gem install bundler
$  bundle install

After the successful completion of the above commands, try running msfconsole again.

Hope this solves the error.

Was this article helpful?

Related Articles

Comments Leave a Comment

  1. It’s showing like this (Gem::GemNotFoundException)
    What can I do?

  2. My error $gem install bundle
    I try your code
    And
    could not locate Gemfile

    Solve my problem I can’t run msfconsole

Leave a Comment