我们将应用程序部署到测试环境中,所有Gems已经在vendor /文件夹中可用。但是当我们运行以下命令时,我们得到的GIT没有安装错误。
$ bundle list
You need to install git to be able to use gems from git repositories. For help installing git, please refer to GitHub's tutorial at https://help.github.com/articles/set-up-git
我们正在使用的ruby和bundler的版本:
$ bundle -v
Bundler version 1.6.1
$ ruby -v
ruby 1.9.3p545 (2014-02-24 revision 45159)
如下所示,捆绑已经冻结,我们确保供应商/文件夹中提供了取决于Git的宝石。
$ cat .bundle/config
---
BUNDLE_FROZEN: '1'
BUNDLE_PATH: vendor/bundle
BUNDLE_BIN: bin
BUNDLE_WITHOUT: development:test
BUNDLE_DISABLE_SHARED_GEMS: '1'
之前有没有人见过这个错误?
答案 0 :(得分:0)
我建议尝试升级到Bundler v1.6.2,因为类似的问题已经解决了。