2012-08-07 41 views
1

的Gemfile混帳文件:錯誤而獲取使用捆紮機

source "http://rubygems.org" 
gem "nokogiri", :git => "git://github.com/tenderlove/nokogiri.git" 

當我運行bundle,出現以下錯誤:

Fetching git://github.com/tenderlove/nokogiri.git 
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! 
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/source.rb:592:in ``': No such file or directory - git clone "git://github.com/tenderlove/nokogiri.git" "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/nokogiri-d4bf05cb9e65f144f074351e5ebe3a0e44c00952" --bare --no-hardlinks (Errno::ENOENT) 

我該如何解決呢?

它是可重複的,不僅有這種寶石也可以與其他寶石:黃瓜,水豚

我使用Windows。

+0

'git'命令是否工作正常? 「C:/ Ruby193/lib/ruby​​/gems/1.9.1/cache /」是否存在? – iltempo 2012-08-07 22:28:41

+0

@iltempo文件夾C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/存在,但它是空的 – 2012-08-08 15:57:32

+0

有關更多詳細信息,請參見https://github.com/carlhuda/bundler/issues/2044 – 2012-08-09 14:00:45

回答

5

這是因爲我沒有安裝Git。

我安裝了Git並將其添加到PATH系統變量中。 bundle後來成爲工作

1

對於其他任何新手,我在Windows 7上安裝Git msysgit

然後在msysgit命令窗口(MINGW32)我移動到我的rails項目目錄並運行bundle install,它工作正常。

謝謝你幫助我這個安德烈。

相關問題