Rbenv & ruby-build does not show the same version list

I am trying to install the latest version of ruby ​​(i.e. 2.1.1) using rbenv.

After upgrading brew, ruby-build and rbenv, the available versions of rubies are different.

Performance:

ruby-build --definitions 

gives me (only versions above 2.0):

 2.0.0-dev 2.0.0-p0 2.0.0-p195 2.0.0-p247 2.0.0-p353 2.0.0-p451 2.0.0-preview1 2.0.0-preview2 2.0.0-rc1 2.0.0-rc2 2.1.0 2.1.0-dev 2.1.0-preview1 2.1.0-preview2 2.1.0-rc1 2.1.1 2.2.0-dev 

With RBenv:

 rbenv install -l 

gives me (only versions above 2.0):

 2.0.0-dev 2.0.0-p0 2.0.0-p195 2.0.0-p247 2.0.0-p353 2.0.0-preview1 2.0.0-preview2 2.0.0-rc1 2.0.0-rc2 2.1.0-dev 2.1.0-preview1 2.1.0-preview2 

What's going on here?

0
source share
1 answer

Have you updated rbenv and the rbenv-build plugin to the latest versions?

I personally prefer to do this by looking at their installation folders ( ~/.rbenv and ~/.rbenv/plugins/ruby-build ) and pulling the latest changes, for example:

 git pull origin master 

I personally see all rubies when I request a list (including 2.1.1).

+3
source

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


All Articles