【问题标题】:cannot load such file -- rbconfig (LoadError) - rubygems无法加载此类文件 -- rbconfig (LoadError) - ruby​​gems
【发布时间】:2013-08-10 20:04:36
【问题描述】:

所以我对此很陌生,请不要高估我并详细解释我的问题/解决方案:)

基本上我尝试在 BackTrack 5 上安装 metasploit,但是在运行命令“msfconsole”(或任何链接到 metasploit 的命令)时,我收到此错误:

root@bt:~# msfconsole
/opt/metasploit/ruby/lib/ruby/1.9.1/rubygems.rb:31:in `require': cannot load such file -- rbconfig (LoadError)
    from /opt/metasploit/ruby/lib/ruby/1.9.1/rubygems.rb:31:in `<top (required)>'
    from <internal:gem_prelude>:1:in `require'
    from <internal:gem_prelude>:1:in `<compiled>'

我环顾四周,并不能真正理解我的问题,我尝试使用对其他人有用的解决方案,但这些似乎对我没有用。 有关我的问题的更多详细信息(使用的命令在有关 ruby​​gems 的其他帮助主题中请求)

root@bt:~# ruby -v
ruby 1.9.2dev (2010-07-02) [x86_64-linux]

root@bt:~# which ruby
/usr/bin/ruby

root@bt:~# gem env | grep 'RUBY EXECUTABLE'
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.2

root@bt:~# ls -l /usr/bin/ruby*
lrwxrwxrwx 1 root root   22 2013-08-08 21:53 /usr/bin/ruby -> /etc/alternatives/ruby
-rwxr-xr-x 1 root root 6264 2012-02-22 02:42 /usr/bin/ruby1.8
-rwxr-xr-x 1 root root 6288 2010-08-27 18:31 /usr/bin/ruby1.9.2
-rwxr-xr-x 1 root root  275 2012-05-16 07:09 /usr/bin/ruby-whine

【问题讨论】:

    标签: rubygems metasploit


    【解决方案1】:

    重新安装 libruby 帮助我在 debian jessie 上运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-22
      • 2012-10-25
      • 2012-02-27
      • 2016-04-26
      • 1970-01-01
      • 2016-11-03
      • 1970-01-01
      相关资源
      最近更新 更多