3
3

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.

[Ruby] rbenvをupdateしてrubyをアップデートする

Last updated at Posted at 2015-12-14

環境

  • MacOSX Yosemite

手順

全体

$ brew update
$ brew upgrade ruby-build
$ rbenv install -l # インストール可能なバージョンを確認
$ rbenv install 2.2.3 # ↑で表示されたリストの中から選択
$ rbenv global 2.2.3
$ rbenv versions # 設定結果を確認

bundlerをつかっている場合は、2.2.3用に入れなおしておくといいです。

$ gem update bundler # いらない?
$ gem install bundler

プロジェクトごと

以下をプロジェクトのルートディレクトリで

$rbenv local 2.2.3 # 好きなバージョンを指定

$ bundle install # gemの入れなおし(いらない?)
3
3
1

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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?