Installation
$ curl -sSL https://git.rvm.io | bash -s stable
$ rvm list known
$ rvm install 1.9.3
No root privilege needed.
If you install it as root, it will be saved in /usr/local/rvm, and after installation all users can use rvm.
Install on Linux Mint 14 32bit
There's no compiled ruby package for Mint 14 32bit. So rvm install 1.9.3
failed. This is a workaround:
-
Download ruby-2.1.0.tar.bz2 for ubuntu 12.04;
-
$ rvm mount -r /path/to/ruby-2.1.0.tar.bz2
-
$ rvm alias create default ruby-2.1.0
-
$ rvm use default
Enable Ruby
Add rvm environments definition into ~/.zshrc or ~/.bashrc:
echo 'source ~/.rvm/scripts/rvm' >> ~/.zshrc
Usage
Run "irb" or "ruby
List installed ruby: rvm list
Note
Fix issue 3212
When running rvm -v
, or start a new tmux window, the following warning appear:
Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see: https://github.com/wayneeseguin/rvm/issues/3212 …
To fix it, backup your .bash and .zsh files, and run:
rvm get stable --auto-dotfiles
.
Verified at 2017.8.27.