Your Ruby version is 2.1.0, but your Gemfile specified 2.0.0

浪尽此生 提交于 2019-11-29 11:55:57

You may need to update your version of ruby-build to make sure you have the update where ruby-2.0.0-dev switched to follow the ruby_2_0_0 branch.

Try running ruby-build --version and make sure it's one of these (or later):

  • v20130907
  • v20130901
  • v20130806
  • v20130628
  • v20130518
  • v20130514
  • v20130501
  • v20130408
  • v20130227
  • v20130226
  • v20130225

If not, run brew upgrade ruby-build.

Go to your Gemfile and change the description there I just got the same problem and couldn't find a "working" solution. So I made my own.

source 'https://rubygems.org'
ruby '2.0.0' #Change this one to this '2.1.0'

gem 'rails', '4.0.3'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!