我在MacBook上安装Metasploit Framework时遇到问题,这是我的配置:
1)OS macOS Sierra 10.12.5
2)从http://osx.metasploit.com下载包metasploitframework-latest.pkg
3)安装pkg文件没有任何问题
当我尝试启动控制台应用程序(msfconsole)时,我遇到了这个问题:
MacBook-di-Marzio:~ marzio$ **msfconsole**
**Could not find nokogiri-1.7.2 in any of the sources
Run `bundle install` to install missing gems.**
我检查了我的系统并安装了nonokiri软件包
所以我进入metasploit框架目录的这条路径:
/opt/metasploit-framework/embeded/framework
并运行命令:
bundle install
捆绑包安装所需的每个宝石文件没有任何问题,但再次没有运气...它一直给我上面的错误:
MacBook-di-Marzio:~ marzio$ **msfconsole**
Could not find nokogiri-1.7.2 in any of the sources
Run `bundle install` to install missing gems.**
我的ruby框架如下:
MacBook-di-Marzio:share marzio$ **ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]**
和......
MacBook-di-Marzio:share marzio$ **rbenv versions
system
* 2.4.1 (set by /Users/marzio/.rbenv/version)**
和..
MacBook-di-Marzio:share marzio$ which ruby
/Users/marzio/.rbenv/shims/ruby
MacBook-di-Marzio:share marzio$ which gem
/Users/marzio/.rbenv/shims/gem
MacBook-di-Marzio:share marzio$ which bundle
/Users/marzio/.rbenv/shims/bundle
答案 0 :(得分:0)
尝试在路径bundle install
中运行命令/opt/metasploit-framework/
。