rvm installation on Ubuntu for managing different rails applications

6 views
Skip to first unread message

krfg

unread,
Nov 28, 2017, 11:41:36 AM11/28/17
to Ruby on Rails: Talk
I need to install `rvm` on a new machine.
I would use `rvm` to switch to different ruby versions and gemsets required by different Ruby on Rails applications.

When a couple of years ago I installed rvm on my current Ubuntu machine, I did it with the following command:

$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable


I notice now that rvm suggests to Ubuntu users to install rvm using the dedicated Ubuntu package.
However the documentation at RailsApp, where I initially found the advice of installing rvm, does not consider this option but instead uses the above curl command, as if it were considered a better choice. I wonder which one of the two options is preferable, and why.

Also in 2015 there was documentation like the above one that suggested to use the curl command with the --rails option instead of the --ruby option.
This suggestion was removed in the RailsApp documentation, and the --ruby option has instead taken its place.
I could not find much information on these options. What I understand is that they install respectively the last stable rails gem and the last stable ruby. If this is all they do, I suppose they are optional indeed, since Ruby can be installed later, and every Rails application has its own rails version in the Gemfile.

Olexandr Averyanov

unread,
Nov 29, 2017, 2:54:24 AM11/29/17
to Ruby on Rails: Talk
http://rvm.io/
You could use
curl -sSL https://get.rvm.io | bash -s stable
Reply all
Reply to author
Forward
0 new messages