[Fixed] cannot load such file — bundler/setup
many people have been facing this problem that when they open Metasploit using command msfconsole. not only in launching Metasploit it occurs in launching other programs also.
they get this error.
[*] Bundler failed to load and returned this error:
‘cannot load such file — bundler/setup’
[*] You may need to uninstall or upgrade bundler
what it’s saying is that maybe your bundler installation is corrupt or missing.
what is bundler?
Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
Bundler is an exit from dependency hell and ensures that the gems you need are present in development, staging, and production. Starting work on a project is as simple as bundle install.
source: bundler
to understand better about this issue you need to first understand
what is Metasploit made of?
The Metasploit Framework is a Ruby-based framework, it means programming language “Ruby on rail” was used to develop Metasploit.
and since it, Metasploit is made on ruby that’s why you are facing this problem.
How to fix cannot load such file bundler setup
to resolve this issue here is a quick fix :
step 1. open your terminal window
step 2. type
gem install bundler
and if you are a non-root user type
sudo gem install bundler
types “yes” if it asks you anywhere
and after completing the process, run the command msfconsole and it should easily open without any errors.
you can click here to know more about bundler
also read:
- How to dual boot windows 10 and kali Linux (Detailed Guide for biginners)
- What is product key for windows 10 everything you need to know
- What is windows prefetch in windows 10? super-simplified
- What is service host superfetch? and why you shouldn’t disable superfetch?
Thank You Brother
my pleasure brother