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.
Why do I get the error Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2 although I have 2.2.2 installed
I finally solved my problem using this thread Bundler not working with rbenv, could not find [gem],
by using these commands after reinstalling rbenv:
gem install --no-ri --no-rdoc bundler
rbenv rehash
bundle --path=vendor/bundle
rbenv Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
What version of ruby are you using?
ruby -v
It sounds like the Gemfile has a ruby requirement listed for 2.1.2. You may need to install that version:
rbenv install 2.1.2
Then you may need to tell rbenv to use that version for that project:
rbenv local 2.1.2
It looks like the rbenv team/community decided against adding support for ruby versions specified in the Gemfile. Reference: https://github.com/sstephenson/rbenv/issues/223
rbenv Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2 but the only version installed is 2.1.2
You just need to install Ruby 2.1.2. You can have multiple Ruby versions installed at the same time. If you have ruby-build installed you can do the following: install 2.1.2, rehash your shims, and then tell rbenv to use 2.1.2 for this project.
rbenv install 2.1.2
rbenv rehash
rbenv local 2.1.2
You're going to have to gem install bundler and then bundle install on your project afterwards.
Your Ruby version is 2.1.0, but your Gemfile specified 2.0.0
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
.
Related Topics
Generate All "Unique" Subsets of a Set (Not a Powerset)
Rails Error Method_Missing': Undefined Method 'This' for Gem::Specification
Access Current Git Commit Number from Within Heroku App
How to Render a PDF in the Browser That Is Retrieve via Rails Controller
Ruby Attr_Accessor VS. Getter/Setter Benchmark: Why Is Accessor Faster
Issue with a Look-Behind Regular Expression (Ruby)
How to Rename or Move Rails's Readme_For_App
Rails 3, Displaying Jpg Images from the Local File System Above Rails_Root
Openshift and Net-Ssh Incompatibility? (2.9.3-Beta1 VS 2.9.2)
Ruby on Rails: How to Add a CSS File with Rails Project
React Error (Only a Reactowner Can Have Refs.)
Gem Install Cannot Find a Header File
Cannot Load Such File -- MySQL2/2.4/Mysql2 (Loaderror) - Windows
Ruby Regex Gsub a Line in a Text File
Rails Server Cannot Start; Getaddrinfo: Nodename Nor Servname Provided, or Not Known (Socketerror)