Last Updated: February 25, 2016
·
1.347K
· Eduardo Martines

Installing RVM, doing it right!

Install rvm

user$ \curl -L https://get.rvm.io | bash -s stable

Install all the packages (even that you don't need all of them for now, but when you need it, you'll be ready..otherwise you'll have to reinstall your Ruby)

rvm pkg install readline
rvm pkg install iconv
rvm pkg install zlib
rvm pkg install openssl
rvm pkg install autoconf
rvm pkg install curl
rvm pkg install gettext
rvm pkg install glib
rvm pkg install libxml2
rvm pkg install libxslt
rvm pkg install libyaml
rvm pkg install llvm
rvm pkg install mono
rvm pkg install ncurses
rvm pkg install pkgconfig

Install oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) and insert this lines in your ~/.zshrc:

# rest of code omitted

# plugins
plugins=(git osx ruby rails3 rvm gem cap bundler)

# load RVM function
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

PATH=$PATH:$HOME/.rvm/bin

# rest of code omitted

Now, reload just to make sure..

rvm reload

Then install Ruby (1.9.3, please!)

rvm install 1.9.3

As the default..

rvm --default use 1.9.3

Gem environment - no rdocs, keep it clean!
Insert this line in your ~/.gemrc:

gem: --no-ri --no-rdoc

Install bundler as global

rvm gemset use global
gem install bundler

Enjoy (: