捆绑包安装失败
我在捆绑安装时遇到此错误
Gem::InstallError: devise_invitable requires RubyGems version ~> 1.3.6. Try 'gem update --system' to update RubyGems itself.
An error occured while installing devise_invitable (0.4.rc), and Bundler cannot continue.
Make sure that `gem install devise_invitable -v '0.4.rc'` succeeds before bundling.
,但是当我看到 rubygems 的版本时,我
gem -v
1.8.10
对如何解决此问题有任何想法......这是我的 gemfile 的顶部
gem 'rails', '3.0.3'
gem 'devise', "1.2.rc"
gem 'devise_invitable', '0.4.rc'
I am getting this error on bundle install
Gem::InstallError: devise_invitable requires RubyGems version ~> 1.3.6. Try 'gem update --system' to update RubyGems itself.
An error occured while installing devise_invitable (0.4.rc), and Bundler cannot continue.
Make sure that `gem install devise_invitable -v '0.4.rc'` succeeds before bundling.
but when i see the version of rubygems i have
gem -v
1.8.10
any ideas on how to fix this....here is the top of my gemfile
gem 'rails', '3.0.3'
gem 'devise', "1.2.rc"
gem 'devise_invitable', '0.4.rc'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 devise_invitable 的 gemspec 中,它们明确要求具有特定版本约束的 rubygems、ruby 和捆绑器。虽然它们看起来应该没问题,因为它们使用的是
>=
,但事实上它在控制台中显示为~>
就很说明问题。~>的要求1.3.6
表示您需要安装 1.3.6 <= x << 的 rubygems 版本1.4.0。bundle install
来获取兼容的 gem 版本,gem install rubygems -v 1.3.6
In the gemspec for devise_invitable, they explicitly require rubygems, ruby and bundler with specific version constraints. While they look like they should be ok since they are using
>=
, the fact that it comes out in your console as~>
is telling.The requirement of
~> 1.3.6
means you need to have a version of rubygems installed that is 1.3.6 <= x < 1.4.0.bundle install
to get compatible gem versionsgem install rubygems -v 1.3.6