Ruby version> = X is not compatible with the current version

I have rbenv installed on my system, and now I'm trying to run the standard bundle install command in my ruby โ€‹โ€‹application. I get the following error:

activesupport-5.0.1 requires ruby version >= 2.2.2, which is incompatible with the current version, ruby 1.9.3p484

I checked everything at its end and donโ€™t know where it gets the old version of ruby โ€‹โ€‹1.9.3 1.9.3... since I have 2.3.0 installed:

 > rbenv versions system * 2.3.0 (set by /neo-main/.ruby-version) > ruby --version ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux] > echo $PATH /root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 

I rebooted to make sure there was nothing in the memory, or something else.

+6
source share
1 answer

Check where your bundle command comes from; this is probably outside of rbenv. Make a gem install bundler and then re-run eval "$(rbenv init -)" to pick up the new gasket.

+9
source

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


All Articles