Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`require': cannot load such file -- robots (LoadError) #6068

Closed
oytunistrator opened this issue Oct 9, 2015 · 9 comments
Closed

`require': cannot load such file -- robots (LoadError) #6068

oytunistrator opened this issue Oct 9, 2015 · 9 comments

Comments

@oytunistrator
Copy link

Ruby Version: ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]

/home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework.rb:19:in require': cannot load such file -- robots (LoadError) from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework.rb:19:in<top (required)>'
from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/database.rb:1:in require' from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/database.rb:1:in<top (required)>'
from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/parsed_options/base.rb:17:in require' from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/parsed_options/base.rb:17:in<top (required)>'
from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/parsed_options/console.rb:2:in <top (required)>' from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:228:inconst_get'
from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:228:in block in constantize' from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:ineach'
from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:in inject' from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/inflector/methods.rb:224:inconstantize'
from /var/lib/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/string/inflections.rb:66:in constantize' from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/command/base.rb:73:inparsed_options_class'
from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/command/base.rb:69:in parsed_options' from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/command/base.rb:47:inrequire_environment!'
from /home/czsr/Pentest/exploits/metasploit-framework/lib/metasploit/framework/command/base.rb:81:in start' from ./msfconsole:48:in

'

@bcook-r7
Copy link
Contributor

bcook-r7 commented Oct 9, 2015

This is a small bug in one of the gems that framework depends on. If you use one of the prepackaged installs, e.g. Kali Linux or the Omnibus installer, this is worked around already.

Otherwise, you simply need change permissions on a single file so it can be read by a non-root user. Here's a hint:

https://github.com/rapid7/metasploit-omnibus/blob/master/config/software/metasploit-framework.rb#L73

Edit - this was pointing to the wrong line.

@wvu
Copy link
Contributor

wvu commented Oct 9, 2015

Also recommend updating your Ruby version. We're on 2.1.6 now.

@mandreko
Copy link
Contributor

On Ruby 2.1.7 now, for what it's worth. Versions move fast!

@nixawk
Copy link
Contributor

nixawk commented Oct 10, 2015

Please update your ruby version, and Setting-Up-a-Metasploit-Development-Environment is helpful.

@oytunistrator
Copy link
Author

Thanks. I return kali from ubuntu vivid.

@wvu wvu closed this as completed Oct 11, 2015
@Romulus10
Copy link

I've patched this issue in the dependency in fizx/robots#10 but I'm not sure if it'll get merged into upstream.

@busterb
Copy link
Contributor

busterb commented Aug 28, 2017

Thanks for the upstream fix @Romulus10, I left a note there.

@Sumanthrr26
Copy link

Update your metaspot framework to the latest version. That overpacks on the current version and the metaspot should work fine as usual after the update.
update the metaspot by msfupdate

@moorthy6369

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants