Skip to content

Ruby Version Manager

WARNING

가급적 rbenv를 사용하는 편이 좋다.

Ruby Version Manager, often abbreviated as RVM, is a unix-like software platform designed to manage multiple installations of Ruby on the same device.

How to install

Before any other step install mpapis public key (might need gpg2)

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

RVM을 설치한다.

## Install RVM (development version):
$ \curl -L https://get.rvm.io | bash

## OR Install RVM stable with ruby:
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby

## OR Select a specific version.
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby=2.0.0

참고로 위의 \curlBash에서 alias가 아닌, 원본 명령어를 사용하라는 의미이다.

이후 rvm을 사용하기 위해 로그아웃하거나 아래와 같이 실행하면 된다.

$ source ~/.rvm/scripts/rvm
## OR
$ source /usr/local/rvm/scripts/rvm

이후 RVM으로 Ruby를 설치할 수 있다.

$ rvm install 2.0.0

How to use

  • rvm list: 설치된 루비 목록이 출력된다.

See also

Favorite site

References


  1. Install_the_RVM_and_Ruby.pdf