2013-11-28 69 views
3

所以我在虛擬機中運行回溯5。我正在嘗試更新metasploit。我從github下載了metasploit目錄,並完全按照Web告訴我的方式(https://community.rapid7.com/community/metasploit/blog/2013/05/20/git-clone-metasploit-dont-svn-checkout)刪除了舊的svn目錄。當我運行msfupdate我得到這個錯誤:沒有這樣的文件加載 - 捆綁(LoadError)

[email protected]:~/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>' 

我知道我可以運行bundle命令,以「捆綁更新」和「包安裝」。其中,在一個側面說明,也導致了一個錯誤,當你運行「捆綁更新」:

Gem::InstallError: factory_girl requires Ruby version >= 1.9.2. 

這是奇怪的考慮,我得到這個,當我問Ruby的版本:

[email protected]:~/metasploit# ruby -v 
ruby 1.9.2dev (2010-07-02) [x86_64-linux] 

這是不是最新版本,但是我在更新Ruby時遇到了問題,在這一點上,我想我可能會問問互聯網,並且有人真的知道這裏會發生什麼事情來幫助。

+0

您使用的是RVM嗎? –

回答

7

一切都是正確的,因爲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版本絕對不是處理的最佳選擇。

+0

此外,1.9.2不再受支持幷包含已知的安全漏洞。您應該更新至1.9.3p484或更高版本。 –

相關問題