msfconsole pop-out an error : Bundler faild to load , cannot load such file -- bundler/setup

root picture root · Mar 27, 2019 · Viewed 15.6k times · Source

So l installed parrot OS on my PC hard drive , after that l updated hole system and tried to run MSFCONSOLE . After l execute that command l get this error :

Bundler failed to load and return this error:

cannot load such file -- bundler/setup

you may need to uninstall or upgrade bundler

After this l uninstall bundler and install it again it didn't work .

l tried to upgrade it as well but it said that all packages are up to date .

Also l ran gem install bundler it successfully installed bundler and 1 gem but after that it pops-out same message after l ran msfconsole

Is it the right way to fix this..?

Answer

Ajaghar picture Ajaghar · Feb 19, 2020

Open the Terminal and run the following commands:

  1. cd /usr/share/metasploit-framework.
  2. Upgrade your bundler/setup : gem install bundler.
  3. Install bundle: bundle install.
  4. gem update --system.
  5. Restart Metasploit.