55
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

Organization

rbenvでのrubyバージョンアップ簡易メモ

rbenv, ruby-buildのアップデート(homebrew編)

$ brew update
$ brew upgrade rbenv ruby-build

rbenv, ruby-buildのアップデート(git編)

$ cd ~/.rbenv
$ git pull
$ cd ~/.rbenv/plugins/ruby-build
$ git pull

※ Yosemiteにしてるとbrew updateが出来ない場合があるので下記にて対応
http://qiita.com/sue738/items/7ab03ecc9f6fcf37408d

インストールできるrubyのバージョンを確認

$ rbenv install --list

rubyの最新版を探してインストール

$ rbenv install 2.1.4

インストールしたバージョンの確認

$ rbenv versions

デフォルトのrubyのバージョンを指定

$ rbenv global 2.1.4
$ ruby -v
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0]

以上!

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
55
Help us understand the problem. What are the problem?