【问题标题】:Error while fetching git file using Bundler使用 Bundler 获取 git 文件时出错
【发布时间】:2012-08-07 18:08:56
【问题描述】:

宝石文件:

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。

【问题讨论】:

  • git 命令是否正常工作? C:/Ruby193/lib/ruby/gems/1.9.1/cache/ 存在吗?
  • @iltempo 文件夹 C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/ 存在但它是空的

标签: ruby git gem bundler


【解决方案1】:

那是因为我没有安装 Git。

我安装了 Git 并将其添加到 PATH 系统变量中。 bundle 之后就开始工作了

【讨论】:

    【解决方案2】:

    对于其他任何新手,我使用msysgit 在 Windows 7 上安装了 Git。

    然后在msysgit 命令窗口 (MINGW32) 中,我移动到我的 rails 项目目录并运行 bundle install,它运行良好。

    感谢您帮助我处理这个 Andrey。

    【讨论】:

      猜你喜欢
      • 2013-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-11
      • 2015-04-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多