Rails 关于 gem azure 的 install 问题

easonlovewan · July 15, 2015 · Last by ericguo replied at July 16, 2015 · 1371 hits

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。

You need to Sign in before reply, if you don't have an account, please Sign up first.