LoginSignup
10
10

More than 5 years have passed since last update.

rbenvをupdateして最新のRubyバージョンをインストール

Last updated at Posted at 2017-09-19

Homebrewを使用して、rbenv・rbenv-buildを最新にする

# Homebrewをアップデート
$ brew update
# ruby-buildをアップデート
$ brew upgrade ruby-build
# インストール可能なrubyのバージョンを確認
$ rbenv install --list
# Rubyの指定したバージョンをインストール
$ rbenv install 2.4.1

最新のバージョンを調べてインストールして下さい!

# 通常使う Rubyを設定
$ rbenv global 2.4.1
# 設定結果を確認
$ rbenv versions
# Rubyのバージョンを確認
$ ruby -v

以上で最新のRubyを利用できるようになります

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