rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.03k stars 13.94k forks source link

msfupdate:316:in `<main>' 3: from ./msfupdate:153:in `git_globals_okay?' bies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- os (LoadError) #9911

Closed hktalent closed 6 years ago

hktalent commented 6 years ago

os: mac os 10.13.4 python -V Python 2.7.14 :: Anaconda custom (64-bit) ruby -v ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] metasploit v5.0.0-dev-c525bc3c0a

       =[ metasploit v5.0.0-dev-c525bc3c0a                ]
+ -- --=[ 1751 exploits - 1004 auxiliary - 304 post       ]
+ -- --=[ 536 payloads - 40 encoders - 10 nops            ]
+ -- --=[ ** This is Metasploit 5 development branch **   ]

$ ./msfupdate
[*]
[*] Attempting to update the Metasploit Framework...
[*]

[*] Checking for updates via git
[*] Note: Updating from bleeding edge
Traceback (most recent call last):
    8: from ./msfupdate:316:in `<main>'
    7: from ./msfupdate:136:in `run!'
    6: from ./msfupdate:136:in `chdir'
    5: from ./msfupdate:143:in `block in run!'
    4: from ./msfupdate:202:in `update_git!'
    3: from ./msfupdate:153:in `git_globals_okay?'
    2: from /Users/***/.rvm/gems/ruby-2.5.1@metasploit-framework/gems/backports-3.11.1/lib/backports/std_lib.rb:9:in `require_with_backports'
    1: from /Users/***/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/Users/***/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- os (LoadError)
hktalent commented 6 years ago

fixed

$gem install os
$ ./msfupdate
$ ./msfconsole
so is ok