Bundler 抛出没有这样的文件或目录进行 gem 安装

发布于 2024-12-15 09:42:15 字数 833 浏览 2 评论 0原文

在 Gemfile、

gem "backup", :git => "git://github.com/tenmiles/backup.git", :ref => "develop"

本地和暂存中,bundle install 确实成功完成。在生产中,当发生 bundle install --deployment 时,捆绑程序会抛出此错误,

Using backup (3.0.19) from git://github.com/tenmiles/backup.git (at develop)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:365:in `initialize': No such file or directory - /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/backup-3.0.19/bin/backup (Errno::ENOENT)

我在 /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1 中检查/bundler/gems/gems/ 和 backup-150fb5168ebe 就在那里!它是一个通过 git 安装的 gem。为什么捆绑程序正在寻找 backup-3.0.19。如何刷新备份 gem 并要求捆绑程序从头开始重新安装 gem。

请帮忙

In Gemfile,

gem "backup", :git => "git://github.com/tenmiles/backup.git", :ref => "develop"

n local and in staging, bundle install did finish successfully. In production, when bundle install --deployment happens, bundler throws this error

Using backup (3.0.19) from git://github.com/tenmiles/backup.git (at develop)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:365:in `initialize': No such file or directory - /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/backup-3.0.19/bin/backup (Errno::ENOENT)

I checked in /home/anand/public_html/myapp/releases/20111113170352/vendor/bundle/ruby/1.9.1/bundler/gems/gems/ and backup-150fb5168ebe is there! Its a gem installed via git. why is bundler looking for backup-3.0.19. How can I refresh backup gem and ask bundler to re install the gem from scratch.

Please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陈甜 2024-12-22 09:42:15

试试这个 http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/ 你可以安装gem通过那里提到的方法进入你的宝石套装

Try this http://raflabs.com/blogs/silence-is-foo/2010/07/19/installing-a-gem-fork-from-github-source/ U can install the gem into your gem set by the method mentioned in there

爱的故事 2024-12-22 09:42:15

我在 1.0.10 中遇到了这个问题,但是当我将服务器更新到捆绑器 1.0.21 时,问题就消失了。

I had this issue with 1.0.10, but when I updated the servers to bundler 1.0.21 the problem went away.

涫野音 2024-12-22 09:42:15

我对当前的 spork 有一些问题。如果您指定一个版本,它应该可以工作

gem "backup", '1.0', :git => "git://github.com/tenmiles/backup.git"

,它会为我修复它

i have the some problem with current spork. If you specify a version it should work

gem "backup", '1.0', :git => "git://github.com/tenmiles/backup.git"

it fixed it for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文