Bundler 抛出没有这样的文件或目录进行 gem 安装
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个 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
我在 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.
我对当前的 spork 有一些问题。如果您指定一个版本,它应该可以工作
,它会为我修复它
i have the some problem with current spork. If you specify a version it should work
it fixed it for me