在我尝试在我的kali linux上安装Ruby on Rails之后,我不能再运行以下命令:
service metasploit start我得到了这个错误:
Starting Metasploit web server: thin/opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
from /opt/metasploit/apps/pro/ui/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /opt/metasploit/apps/pro/ui/scripts/ctl.rb:29:in `start_thin'
from /opt/metasploit/apps/pro/ui/scripts/ctl.rb:46:in `<main>'我该如何解决这个问题呢?
发布于 2013-11-05 00:45:17
您需要使用一些工具来管理ruby gem,比如RVM
当你安装Ruby on Rails时,它看起来像是将rake rubygem更新到了一个与metasploit不兼容的版本:
Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)我会运行以下命令来降级rake (可能需要sudo):
gem install rake --version "10.1.0"现在,请确保使用rvm (或rbenv)来隔离gemsets,并避免版本不一致。
https://stackoverflow.com/questions/19770487
复制相似问题