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 Ruby version is 2.5.1 but your Gemfile specified 2.4.0
You probably have ruby '2.4.0'
line in your Gemfile
somewhere. Change it to ruby '2.5.1'
.
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
Can't Install Ruby Rvm on Ubuntu 16.04 Due to Gpg Bug
Is This the Best Way to Unescape Unicode Escape Sequences in Ruby
How to Use the Debugger with Ruby 2.0
The Class/Object Paradox Confusion
Installing Rvm (Ruby Version Manager)
In Ruby on Rails, Are '#Encoding: Utf-8' and 'Config.Encoding = "Utf-8"' Different
How to Remove Lines of Data in the Middle of a Text File with Ruby
Find the Newest Record in Rails 3
Ruby: How to Install a Specific Version of a Ruby Gem
What Is the "Right" Way to Iterate Through an Array in Ruby
How to Remove a Key from Hash and Get the Remaining Hash in Ruby/Rails
Uninstall All Installed Gems, in Osx
Matching Balanced Parenthesis in Ruby Using Recursive Regular Expressions Like Perl