0
$ sudo ./msfconsole 
Could not find rake-10.1.0 in any of the sources 
Run `bundle install` to install missing gems. 
$ rake --version 
rake, version 10.1.0

Does anyone know what could cause this?

I tried running bundle install, but when I try to run msfconsole again afterwards it throws the error again.

petFoo
  • 407
  • 1
  • 6
  • 16
  • without sudo, I get all kinds of errors.. "psych.rb:203:in `parse': (): did not find expected whitespace or line break while scanning a tag at line 5 column 14 (Psych::SyntaxError)" – petFoo Dec 19 '13 at 18:58
  • This all begs the question of whether you actually want to run an exploit library as root, though. :-P – Denis de Bernardy Dec 19 '13 at 20:03

1 Answers1

0

It might be a PATH-related issue.

Try it with sudo -E, so that your PATH, gem locations, etc. all become available when running sudo.

Other possibilities might be detailed in these related questions:

Community
  • 1
  • 1
Denis de Bernardy
  • 75,850
  • 13
  • 131
  • 154
  • sudo -E gives the same errors that running without sudo does. I'll keep working on it. – petFoo Dec 20 '13 at 18:38
  • Well, that definitely means there's a PATH issue. Which answers the question you asked about. But you're still left needing to fix some incorrect yaml somewhere to make psych happy either way. (Suggestion, btw: debug this without sudo.) Methinks open a new question for that one, with the offending yaml that is getting parsed. – Denis de Bernardy Dec 20 '13 at 18:59