所以我对此很陌生,请不要高估我并详细解释我的问题/解决方案:)
基本上我尝试在 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>'
我环顾四周,并不能真正理解我的问题,我尝试使用对其他人有用的解决方案,但那些似乎从未对我有用。关于我的问题的更多详细信息(使用的命令在其他有关 rubygems 的帮助主题中请求)
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