ruby - 使用 Bundler 获取 git 文件时出错

标签 ruby git rubygems bundler

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/

相关文章:

ruby - 如何将 gem 配置为只使用系统 gem?

ruby-on-rails - Rails 控制台找不到 activesupport-4.1.2,即使它已安装

ruby - 我应该如何处理 APP_KEY 和 APP_SECRET(Dropbox API)

ruby - 在任何来源中都找不到 rake-0.8.7 (Bundler::GemNotFound)

ruby - 我如何从一组给定的值中进行选择,四舍五入?

ruby - 在 Ruby 中获取月中月末日期

git - 我如何 git reset --hard origin/我 checkout 的任何分支?

Git for Websites/post-receive/测试和生产站点分离

svn - 'rm' + 'svn update' 在 Git 中等效?

ruby - --with-cflags ="-Wno-error=implicit-function-declaration"的作用是什么?