Rvm ruby version manager.
Rvm install ruby from source.
If for example you want to install ruby 2 6 and set it as the default version you would issue the following commands.
After the installation we can list the available ruby versions we have installed by.
To get a list of all known ruby versions type.
Rvm if the install script is run as a standard non root user rvm will install into the current users s home directory.
Verify that ruby was properly installed by printing the version number.
Install the latest stable version of ruby with rvm and set it as the default version with.
Rvm install 2 6rvm use 2 6 default.
It can manage rubies installed by ruby install or even built from source.
In this case you can see that rvm has in fact hidden itself from the system and given you access back to the system installed ruby.
To install a version of ruby using rvm use the command rvm install version number so to install version 2 6 3 of ruby enter the following into the terminal.
Rvm use system ruby v ruby 2 0 0p451 2014 02 24 revision 45167 universal x86 64 darwin13 which ruby usr bin ruby which tells the current shell to return the location of ruby.
Ruby v ruby 2 6 3p62 2019 04 16 revision 67580 x86 64 linux for more information about how to.
Both tools are available for macos linux or other unix like operating systems.
First check to see which versions of ruby are available by listing them.
Rvm install 2 5 1rvm use 2 5 1 default.
In this tutorial we recommend that you use ruby version manager rvm for this purpose.
While it can t install ruby by default its ruby build plugin can.
Depending on your operating system the above command may use precompiled binaries or compile the ruby binaries from source.
If the rvm install script complains about certificates you need to follow the displayed instructions.
Rvm is a tool for installing and managing multiple ruby versions.
Ruby v ruby 2 5 1p57 2018 03 29 revision 63029 x86 64 linux.
Rbenv allows you to manage multiple installations of ruby.
Rvm list known then install the specific version of ruby that you need through rvm where ruby version can be typed as ruby 2 4 0 for instance or just 2 4 0.