如何在 parrot os kde 上使用 metasploit 时修复此错误

如何在 parrot os kde 上使用 metasploit 时修复此错误
Traceback (most recent call last):
        5: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
        4: from <internal:gem_prelude>:1:in `require'
        3: from /usr/lib/ruby/vendor_ruby/rubygems.rb:1348:in `<top (required)>'
        2: from /usr/lib/ruby/vendor_ruby/rubygems.rb:1348:in `require'
        1: from /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:49:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:50:in `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)

答案1

尝试以下命令;

apt install ruby zlib1g-dev libpq-dev libpcap0.8-dev libsqlite3-dev

它应该可以解决这个问题。你能检查一下你的操作系统上是否已经安装了 ruby​​ 吗?

相关内容