您的 Ruby 版本是 2.0.0,但您的 Gemfile 指定了 2.1.0 [英] Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0

查看:44
本文介绍了您的 Ruby 版本是 2.0.0,但您的 Gemfile 指定了 2.1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试捆绑安装时,我收到以下消息:

When I try to bundle install I get the following message:

Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0

在我的 Gemfile 中,我有以下内容:

In my Gemfile I have the following:

ruby '2.1.0'

当我在控制台中运行 ruby -v 时,我得到:

And when I run ruby -v in the console I get:

ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]

Ruby 2.1.0p0 是什么意思?我的 Gemfile 中应该有什么版本,为什么错误告诉我我有 Ruby 版本 2.0.0?

What does Ruby 2.1.0p0 mean? What version should I have in my Gemfile and why does the error tell me I have Ruby version 2.0.0?

推荐答案

运行

gem install bundler

gem update bundler 

这可能会解决您的问题.

which may fix your problem.

对于所有新安装的 Ruby 版本,您应该更新或安装新的捆绑程序.

For all new installed versions of Ruby you should update or install a new bundler.

这篇关于您的 Ruby 版本是 2.0.0,但您的 Gemfile 指定了 2.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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