5
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.

"rbenv install -list"指定したバージョンがない場合の対応手順

Last updated at Posted at 2018-10-30

Introduction

"rbenv install -list" で出力された値の中にインストールしたいバージョンがなかった際の対応方法です。
※ 因みに私は2.5.3がなくて困りましたw

【brew編】インストール手順

ruby-buildが古いためであると考えられます。
そのため下記コマンドでruby-buildのアップグレード行う


$ ruby-build --version
※ バージョン確認
※ "ruby-build 20181019"(※2018/10/30時点最新)
  ではなかったらアップデートする必要あり。

$ brew upgrade ruby-build
※ インストールコマンド

$ ruby-build --version
※表示が最新になっていればOK

$ rbenv install -list
※インストールしたいバージョンが表示されていることを確認

$ rbenv install ”インストールしたいバージョン”
Ex.  $ rbenv install 2.5.3

【plugin編】インストール手順

brewではなく、rbenvのpluginでインストールしている場合は下記コマンドでruby-buildでアップデートすることが可能です。
こちらの文献を参考にさせていただきました

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

Conclusion

ruby 2.5.3 インストールできました♫

それでは!!

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