33
28

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.

MacのRubyを最新化する手順

Posted at

前提

事前にHomebrewでrbenvをインストールしていた場合の手順。

作業手順

ruby-buildのアップデート

$ brew upgrade ruby-build

最新のRubyがあるか確認

2.3.0を入れたかったので、ここではそれを確認している。

$ rbenv install --list | grep 2.3.0
  2.3.0-dev
  2.3.0-preview1
  2.3.0-preview2
  2.3.0
  rbx-2.3.0

最新のRubyのインストール

あとは、いつもどおり。

$ rbenv install 2.3.0
$ rbenv global 2.3.0

確認

無事バージョンアップできた。

$ ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
33
28
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
33
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?