问题描述
在Gemfile中, gembackup,::git => git://github.com/tenmiles/backup.git,:ref => 开发
n本地和分期, bundle install
成功完成。在生产中,当 bundle install --deployment
发生时,bundler会抛出这个错误
从git://github.com/tenmiles/backup.git(at develop)使用备份(3.0.19)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer。 rb:365:在`initialize'中:没有这样的文件或目录 - /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。为什么bundler在寻找备份3.0.19。
请帮助
我在1.0.10中遇到了这个问题,但是当我将服务器更新到bundler 1.0.21时,问题就消失了。
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
I had this issue with 1.0.10, but when I updated the servers to bundler 1.0.21 the problem went away.
这篇关于Bundler抛出没有这样的文件或目录进行宝石安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!