Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is ruby 3.0.0 on rbenv

Tags:

ruby

rbenv

rbenv install --list-all shows me, among many other things of course,

3.0.0-dev
3.0.0-preview1
3.0.0-preview2

But where is 3.0.0 itself, the actual final release? I'd like to try it out. Not all announced features made it into the previews so I need the real thing.

like image 828
matt Avatar asked Feb 10 '21 00:02

matt


2 Answers

rbenv install passes thru ruby-build. You need to update (brew upgrade if installed via Homebrew) your ruby-build in order to see the latest versions.

like image 135
matt Avatar answered Oct 24 '22 20:10

matt


On Ubuntu

Short answer:

# You need to update the available versions via ruby-build
~ git -C ~/.rbenv/plugins/ruby-build pull
~ rbenv install 3.0.0
...
Installed ruby-3.0.0 to ~/.rbenv/versions/3.0.0

Long answer with a beautiful picture🐈: https://richstone.io/where-is-ruby-3-0-0-on-rbenv/

like image 36
Rich Steinmetz Avatar answered Oct 24 '22 22:10

Rich Steinmetz