Your version of Ruby is 2.2.4, but your Gemfile is 2.3.0?

I am trying to make a bundle install ruby project in Git Bash, but I get the above message.

 ruby -v 

ruby 2.2.4p230 (version 2015-12-16 53155) [i836-mingw32]

 gem -v 

2.3.0

New to Ruby, so it's really frustrating. I am trying to complete the project below http://www.viralrails.com/?p=25

+5
source share
1 answer

This is because you specify the Ruby version in your Gemfile (2.3.0), and this version is not installed or is not the current or standard version.

Do not delete the ruby ​​'2.3.0' line, as someone said above. An application may have a dependency on this version. Follow these steps:

1) Check if Ruby 2.3.0 is installed. If you use rvm, this can be done.

 rvm list 

and if you use rbenv

 rbenv versions 

2) If you do not have this version of Ruby in the list of installed versions, install it by issuing the following command

 rvm install 2.3.0 

and if you use rbenv

 rbenv install 2.3.0 

3) If you have already installed or completed step 2 of Ruby 2.3.0, enter your application directory and run the following command

 rvm use 2.3.0 

and if you use rbenv

 rbenv local 2.3.0 

Then run

 bundle install 

and I believe that everything will be all right.

Hope this helps!

+7
source

Source: https://habr.com/ru/post/1244646/


All Articles