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
Kill Process and Sub-Processes in Ruby on Windows
Rvm System-Wide Install Script Url Broken -- What Is Replacement
Get Response Headers from Curb
Where to Put a Before_Filter Shared Between Multiple Controllers
Why Does a Simple Thin Server Stop Responding at 16500 Requests When Benchmarking
Get, or Calculate the Entropy of an Image with Ruby and Imagemagick
Telling Bundler to Exclude Certain Gems from a Particular Gem's Installation
Sorting an Array by Two Values
Split Seeds.Rb into Multiple Sections
How to Use Regex for Utf8 in Ruby
Ssl_Connect Syscall Returned=5 Errno=0 State=Sslv2/V3 Read Server Hello A
Find Number of Bytes a Particular Hash Is Using in Ruby
Getaddrinfo Error with Mechanize
Openssl Trouble with Ruby 1.9.3
How to Integrate 'Premailer' with Rails
Graphql::Client::Dynamicqueryerror Expected Definition to Be Assigned to a Static Constant