Ruby on rails 没有要加载的文件--bundler(LoadError)

Ruby on rails 没有要加载的文件--bundler(LoadError),ruby-on-rails,ruby,bundler,metasploit,Ruby On Rails,Ruby,Bundler,Metasploit,所以我在虚拟机中运行回溯5。我正在尝试更新metasploit。我从github下载了metasploit目录,并完全按照web告诉我的那样删除了旧的svn目录()。当我运行msfupdate时,出现以下错误: root@bt:~/metasploit# ./msfupdate [*] [*] Attempting to update the Metasploit Framework... [*] [*] Checking for updates via git [*] Note: Updat

所以我在虚拟机中运行回溯5。我正在尝试更新metasploit。我从github下载了metasploit目录,并完全按照web告诉我的那样删除了旧的svn目录()。当我运行msfupdate时,出现以下错误:

root@bt:~/metasploit# ./msfupdate
[*]
[*] Attempting to update the Metasploit Framework...
[*]

[*] Checking for updates via git
[*] Note: Updating from bleeding edge
HEAD is now at a02e0ee Land #2682 - Kimai v0.9.2 'db_restore.php' SQL Injection
Already on 'master'
Already up-to-date.
[*] Updating gems...
./msfupdate:188:in `require': no such file to load -- bundler (LoadError)
    from ./msfupdate:188:in `update_git!'
    from ./msfupdate:137:in `block in run!'
    from ./msfupdate:135:in `chdir'
    from ./msfupdate:135:in `run!'
    from ./msfupdate:292:in `<main>'
奇怪的是,当我要求Ruby的版本时,我得到了这个:

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

这不是最新的版本,但我在更新Ruby时遇到了问题,现在我想我最好去问一下互联网,找一个真正知道这里发生了什么的人来帮助我。

一切都是正确的,因为
1.9.2dev
版本是之前的
1.9.2

irb > Gem::Version.new('1.9.2dev') >= Gem::Version.new('1.9.2')
# => false
irb > Gem::Version.new('1.9.2dev') >= Gem::Version.new('1.9.1')
# => true
作为一种临时解决方法,您可以尝试显式安装
bundler

gem install bundler

显然,我建议您升级Ruby,无论如何,
dev
版本肯定不是最好的选择。

此外,1.9.2不再受支持,并且包含已知的安全漏洞。您应该更新到1.9.3p484或更高版本。
gem install bundler