DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

RVM Notes


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:

  1. Download ruby-2.1.0.tar.bz2 for ubuntu 12.04;

  2. $ rvm mount -r /path/to/ruby-2.1.0.tar.bz2

  3. $ rvm alias create default ruby-2.1.0

  4. $ rvm use default

Enable Ruby

Add rvm environments definition into ~/.zshrc or ~/.bashrc:

echo 'source ~/.rvm/scripts/rvm' >> ~/.zshrc

Usage

Run "irb" or "ruby " in console directly.

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.



Published

Jan 16, 2014

Last Updated

Jan 16, 2014

Category

Tech

Tags

  • ruby 9
  • rvm 2

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor