gem 文件:
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)
我该如何解决?
它不仅可以用这种 gem 重现,而且可以用其他 gem 重现: cucumber 、 capybara
我使用 Windows。
最佳答案
那是因为我没有安装Git。
我安装了 Git 并将其添加到 PATH 系统变量中。 bundle
之后开始工作
关于ruby - 使用 Bundler 获取 git 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11851652/