Rails 关于 gem azure 的 install 问题

easonlovewan · 2015年07月15日 · 最后由 ericguo 回复于 2015年07月16日 · 1359 次阅读

gem 包里已经有个 azure-0.6.4 的版本了,启动项目的时候出现代码(1)的问题非让把 azure-0.0.0 的这个版本给安装了,bundle 完之后 gem list 发现 azure (0.6.4, 0.0.0) 不太明白怎么有个 0.0.0 的版本?就算把 0.0.0 的这个版本给 uninstall 之后重新 bundle 还是提示安装 0.0.0 并且 bundle 完之后启动项目出现代码(2)的问题。。。。。本人已疯 (1)Could not find azure-0.0.0 in any of the sources Run bundle install to install missing gems. (2)/Users/eason/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- azure (LoadError)

第一次遇到此状况求解

查一下依赖 azure 的组件名字

gem dependency azure -R

然后改文件夹 Ruby21/lib/ruby/gems/2.1.0/specifications 下相应的 gem 依赖文件,从 0.0.0 改到 0.6.4,另外如果这个组件开源,可以开 PR。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号