Ruby v ruby 2 1 1p76 2014 02 24 revision 45161 x86 64 darwin12 0 which will download compile and install ruby 2 1 1 and then set it to current.
Rvm install ruby.
It can also manage different gemsets.
As an example to install and use ruby 2 1 1 you may do.
Curl ssl https get rvm io bash s stable ruby.
Rvm install 2 2 0 disable binary.
Ruby version manager rvm rvm is a command line tool which allows you to easily install manage and work with multiple ruby environments from interpreters to sets of gems.
Curl ssl https get rvm io bash.
To list all available ruby versions you can use.
Rvm list we can switch between the ruby versions by typing.
Rvm 2 1 1 gem install rails v 4 1 0 rvm gemset create rails410 rails320 gemset rails410 created.
Rvm allows you to install and manage multiple installations of ruby on your system.
Rvm use 2 2 0 如果想设置为默认版本 这样一来以后新打开的控制台默认的 ruby 就是这个版本.
Rvm 2 1 1 rails410 gem install rails v 4 1 0 rvm 2 1 1 rails320 gem install rails v 3 2 0.
Note that for each of the ruby installs above you can have completely separate versions.
Switching between patchlevels is very easy.
Rvm install rubyrvm default use ruby.
Once you have installed a ruby interpreter with rvm successfully you may then use it by executing the use command.
Replace x x x with the ruby version you want to install.
For example for ruby 2 1 1.
Rvm install 2 1 1.
It is available for macos linux or other unix like operating systems.
It can also manage different gemsets.
Verify that ruby was properly installed by printing the version number.
Rvm use 2 2 0 default 查询已经.
Install rvm stable with ruby.
Rvm install ruby x x xrvm default.
Install rvm development version.
Additionally with rails poor man s railsinstaller.
If you need a different newer version of rvm after installing base version of rvm check the upgrading section.
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.
Ruby v ruby 2 5 1p57 2018 03 29 revision 63029 x86 64 linux install ruby using rvm rvm is another tool for installing managing and working with multiple ruby environments.
Ruby v ruby 2 6 3p62 2019 04 16 revision 67580 x86 64 linux if you want to install a specific version of ruby enter the commands below.
Verify that ruby was properly installed by printing the version number.
After the installation we can list the available ruby versions we have installed by typing.
Rvm ruby 2 0 0 p451 switching to ruby 2 0 0 p451.
Rvm install 2 1 1 installing ruby from source to.