In the attempt to install ruby 2.7.1 using rbenv I noticed the version was not listed on my ubuntu 18.04
$ rbenv install -l | grep 2.7.
2.7.0-dev
2.7.0-preview1
jruby-9.2.7.0
rbx-2.71828182
In the attempt to install ruby 2.7.1 using rbenv I noticed the version was not listed on my ubuntu 18.04
$ rbenv install -l | grep 2.7.
2.7.0-dev
2.7.0-preview1
jruby-9.2.7.0
rbx-2.71828182
As Chilianu Bogdan mentioned, rbenv
does not manage version by itself, its done via ruby-build
. If you have it as a plugin, git -C "$(rbenv root)"/plugins/ruby-build pull
should indeed work.
In case you don't have plugins/ruby-build
directory, most probably ruby-build
is installed as standalone app, and you need to upgrade it via package manager or source pull & reinstall
So I found this great resource: here
I checked if ruby-build was installed with
I checked if ruby-build was associated with rbenv checking the installation path:
as suggested in the resource this solved the problem for me.
I also noticed as I tried to install an inexistent version that the command gives the same suggestion