[英]no such file to load — bundler (LoadError)
So I'm running backtrack 5 in a virtual machine. 所以我在虚拟机中运行backtrack 5。 I'm trying to update metasploit.
我正在尝试更新metasploit。 I downloaded the metasploit directory from github and removed the old svn directory exactly as the web told me to ( https://community.rapid7.com/community/metasploit/blog/2013/05/20/git-clone-metasploit-dont-svn-checkout ).
我从github下载了metasploit目录并删除了旧的svn目录,就像网络告诉我的那样( https://community.rapid7.com/community/metasploit/blog/2013/05/20/git-clone-metasploit-dont -svn-checkout )。 I'm getting this error when I run msfupdate:
运行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>'
I know that I can run the bundle command to "bundle update" and "bundle install". 我知道我可以运行bundle命令来“捆绑更新”和“捆绑安装”。 Which, on a side note, also leads to an error when you run "bundle update":
在旁注中,当您运行“捆绑更新”时,这也会导致错误:
Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
Which is odd considering that I get this when I ask for Ruby's version: 考虑到当我要求Ruby的版本时我得到这个,这很奇怪:
root@bt:~/metasploit# ruby -v
ruby 1.9.2dev (2010-07-02) [x86_64-linux]
It's not the latest version, but I am having trouble updating Ruby and at this point I figured I might as well ask the internet and have someone who actually knows what is going on here to help. 这不是最新版本,但是我在更新Ruby时遇到了麻烦,而且我觉得我不妨问互联网,并且有人真正知道这里发生了什么事情来帮忙。
Everything is correct, since 1.9.2dev
version is prior to 1.9.2
: 一切都是正确的,因为
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
As a temporary workaround you may try to install bundler
explicitly: 作为临时解决方法,您可以尝试显式安装
bundler
:
gem install bundler
Apparently I would suggest you to upgrade Ruby in any case, dev
versions are definitely not the best choice to deal with. 显然我建议你在任何情况下升级Ruby,
dev
版本绝对不是最好的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.