137
145

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.

rbenvでRubyのバージョンアップをする(for Mac)

Last updated at Posted at 2015-08-21

rbenvでrubyバージョン2.7.0にする

新しいバージョンのインストール

ruby-buildを最新にする

$ brew update
$ brew upgrade rbenv ruby-build

インストール可能なリストを表示する

$ rbenv install -l

ruby-buildが最新なのに、インストール可能なリストに新しいバージョンが表示されない場合

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

新しいRubyバージョンのインストール

$ rbenv install 2.7.0

インストール済みのrbenvを確認する

$ rbenv versions

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

バージョンアップをする

$rbenv local 2.7.0

bundlerのインストール

$ gem update bundler
$ gem install bundler

gem 再インストール

$ bundle install
137
145
3

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
137
145

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?