40
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

brewでインストールしたrbenvをupgradeしてruby2.0.0をインストールする

Last updated at Posted at 2013-08-27

brewを最新に更新

$ brew update

ruby-buildをupgrade

$ brew upgrade ruby-build

rbenvのインストールできるrubyのリストを確認

$ rbenv install --list
Available versions:
~~~~~~~~ 省略 ~~~~~~~~~~~~~~
  2.0.0-p195
  2.0.0-p247 # <= 増えてる!!
  2.0.0-preview1
~~~~~~~~ 省略 ~~~~~~~~~~~~~~

ruby 2.0.0-p247をインストール

$ rbenv install 2.0.0-p247
$ rbenv versions # インストールを確認
$ 1.9.3-p194 (set by /Users/yujiroarai/.rbenv/version)
  2.0.0-p247 # <= OK!!!

普段使用するrubyを2.0.0-p247にする

$ rbenv global 2.0.0-p247
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0] # OK!!!
40
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
40
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?