[Mac] Installing Ruby and Rails with RVM

Tadashi Shigeoka ·  Fri, September 16, 2011

I set up a Ruby development environment on Mac using RVM, so here’s a memo. (Last updated: 2013/07/09)

RVM: Ruby Version Manager - RVM Ruby Version Manager - Documentation

github : wayneeseguin/rvm


Installing RVM, Ruby, and Rails

The following command will batch install RVM, Ruby, and Rails:

curl -L get.rvm.io | bash -s stable --autolibs=homebrew --rails --trace

Also, by specifying —autolibs=homebrew, it will install dependent libraries as packages using Homebrew.

RVM: Ruby Version Manager - autolibs option


Initial RVM Setup

After installing rvm, restart the console or start rvm with the following command:

source ~/.rvm/scripts/rvm

That’s all from the Gemba.