0

I intend to install ruby by rvm to my Macbook Pro, with the command tutorial:

$ rvm requirements
$ rvm install 2.3.0
$ rvm use 2.3.0 --default

But you know the 2.3.0 maybe not the newest version, because the tutorial is long time ago.

So, how can I get the lastest version of ruby in command?

aircraft
  • 25,146
  • 28
  • 91
  • 166

2 Answers2

2
rvm get head # update list of known rubies. Necessary if your local list is out of date.
rvm install ruby --latest # install the latest ruby

The latest ruby version (at time of writing) is 2.4.0

Glyoko
  • 2,071
  • 1
  • 14
  • 28
  • I use `rvm get head`, terminal shows:`Downloading https://get.rvm.io No GPG software exists to validate rvm-installer, skipping. Downloading https://github.com/rvm/rvm/archive/master.tar.gz`,and it takes a long time, is it normal ? – aircraft Jan 16 '17 at 01:32
  • rvm uses GPG to verify the integrity of downloaded rubies. If you have gpg in your path (install varies by system) then that message should go away. I don't know why downloading master.tar.gz would take a while, however... It takes maybe 5 seconds for me. – Glyoko Jan 16 '17 at 01:40
0

you can run rvm list known to see all options, but 2.3 is pretty new and will be a good choice.

max pleaner
  • 26,189
  • 9
  • 66
  • 118