Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM, where is Ruby 3.0.0?

Tags:

ruby

rvm

ruby-3

I want to download the latest Ruby release(version 3.0.0), using RVM but I am faced with the following error when running rvm install 3.0.0:

Unknown ruby interpreter version (do not know how to handle): 3.0.0

I have also tried 3 & 3.0, but gives the same error.

According to this page, it should be available through RVM. I'm already using RVM to manage my ruby versions, so I don't want to use rbenv ... nor do I want to install from source.

How can I get Ruby version 3.0.0 installed using RVM?

like image 883
grizzthedj Avatar asked Dec 28 '20 12:12

grizzthedj


People also ask

Where does RVM store Ruby?

Ruby Gems for all installed ruby interpreters and versions are stored completely separate. Gems are located in ~/. rvm/gems/$ruby_string.

How do I change Rails version in RVM?

this way now you can switch between this two rails installations with: rvm use 2.0.0@rails3 rails -v # rails 3.2... rvm use 2.0.0@rails4 rails -v # rails 4.0... Show activity on this post.


Video Answer


4 Answers

If you have not updated rvm do that first RVM Upgrading

rvm get stable 
# or 
rvm get master # for even newer versions not in stable 3.0.0 in this case

To see all available rubies run

rvm list remote all 
# or
rvm list known # as pointed out in the comments

you should see ruby-3.0.0 in the list of available rubies

Then run

rvm install ruby-3.0.0
like image 145
engineersmnky Avatar answered Oct 23 '22 04:10

engineersmnky


In many parts of the world, the current time is holiday time. RVM is maintained by unpaid volunteers in their spare time, who might choose to spend time with their families.

Therefore, it might take a while for a new release of RVM to come out.

Also, there are a couple of bugs related to YARV 3.0.0 not working on the RVM bug tracker, obviously those will need to be fixed before a new release of RVM that supports YARV 3.0.0 can be released.

like image 4
Jörg W Mittag Avatar answered Oct 23 '22 02:10

Jörg W Mittag


According to the RVM offline installation docs, the required extension to install any Ruby version is .tar.bz2.

Taking a look at the Ruby's 3 FTP folder, the .tar.bz2 is available only for the preview1 release. Neither the rc1 nor the official has that extension available yet.

I think we gotta wait for some maintainer to update the FTP folder with that extension.

like image 1
Daniel Vidal Avatar answered Oct 23 '22 02:10

Daniel Vidal


First you need to upgrade the RVM. Then try to install the needed version again ->

rvm get master && rvm install 3.0.0

like image 1
spirito_libero Avatar answered Oct 23 '22 03:10

spirito_libero