Bundler 找不到 gem “activesupport" 的兼容版本; [英] Bundler could not find compatible versions for gem "activesupport"

查看:45
本文介绍了Bundler 找不到 gem “activesupport" 的兼容版本;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我迁移到 3.2.13 版本的 rails 时遇到了这个错误,我该如何摆脱这个错误?

I migrated to 3.2.13 version of rails and I am getting this error, how do I get rid of this?

Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
  In snapshot (Gemfile.lock):
    activesupport (3.2.12)

  In Gemfile:
    rails (= 3.2.13) ruby depends on
      activesupport (= 3.2.13) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

编辑

sinatra (1.3.6)
  rack (~> 1.4)
  rack-protection (~> 1.3)
  tilt (~> 1.3, >= 1.3.3)

推荐答案

对于任何意外访问此链接的人(当时 google 最先提供此页面);查看这篇文章 Bundler 找不到兼容版本对于 gem,更新 Rails 应用

For anyone who accidently comes to this link (at the time google served this page first); check out this post Bundler could not find compatible versions for gem, updating Rails app

我的步骤已运行

gem update rails

rm Gemfile.lock

更改我的 Gemfile 以引用我想要的 Rails 版本

change my Gemfile to reference the version of rails i wanted

gem 'rails', '3.2.13'

终于运行了

bundle install 

我没有像@PistachioPony 建议的那样尝试捆绑更新,但这可能会代替删除锁定文件并重建.

I didn't try bundle update as @PistachioPony suggested but that might take the place of removing the lock file and rebuilding.

这篇关于Bundler 找不到 gem “activesupport" 的兼容版本;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆