Your Ruby Version Is 2.2.4, But Your Gemfile Specified 2.3.0

How to fix Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5 while server starting

You better install Ruby 2.2.5 for compatibility. The Ruby version in your local machine is different from the one declared in Gemfile.

If you're using rvm:

rvm install 2.2.5
rvm use 2.2.5

else if you're using rbenv:

rbenv install 2.2.5
rbenv local 2.2.5

else if you can not change ruby version by rbenv,
read here

Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0

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.

Your version is 2.3.4, but your Gemfile specified 2.4.1

Your last step should be bundle update instead of bundle:

rvm use ruby-2.4.1
bundle update

I would not specify ruby in Gemfile, I'd rather specify it in .rvmrc of rails root, so that ruby version manager reads it; where as Gemfile is for gem versions.

Warning: the running version of Bundler is older than the version that created the lockfile error

Just run gem install bundler:2.1.4, don't worry about the older version that comes with ruby, it should not be used.



Related Topics



Leave a reply



Submit