homebrewをアップデート
$ brew update
$ brew install rbenv ruby-build
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ source ~/.bashrc $ rbenv --version rbenv 0.4.0
インストールされているRubyのバージョンを確認
$ rbenv versions
* system (set by /Users/eikichi/.rbenv/version)
2.1.3
Ruby の新しいバージョンが有るか確認 $ rbenv install -l
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.2.0-dev
2.2.0-preview1
新しいバージョンの Ruby をインストール$ rbenv install 2.1.4
Downloading...