Search code examples
rubygemfile

Your Ruby version is 2.0.0, but your Gemfile specified 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

In my Gemfile I have the following:

ruby '2.1.0'

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

ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.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?


Solution

  • Run

    gem install bundler
    

    or

    gem update bundler 
    

    which may fix your problem.

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