0
0

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-buildをアップデートしてもリストが更新されない時は.rbenv/pluginsを確認しよう

Last updated at Posted at 2018-10-31

今日したこと

Rubyのバージョンを2.5.0に上げた(死ぬほどいまさら)

困ったこと

ruby-buildをアップデートしても2.5.0がバージョン一覧(rbenv install -l)に出てこない。

ターミナル
$ brew update
$ brew upgrade ruby-build

上記をターミナルに打ち込んだけど、リストが更新されない。。。

原因

~/.rbenv/plugins/ruby-buildが存在するとpluginsが優先されるらしい。
自分の環境ではなぜかあった(いろいろ適当に記録もせず入れるからこうなる)

解決法

とりあえずplugins内のruby-buildを消した。

うまくいった。
リストは更新されてて無事2.5.0をインストールできた。
ちなみに2018/11/01時点ですでに2.6.0のpre2まで出てるみたい。
全然知らなかった。

まとめ

brew版とplugins版が二重になっちゃって、しかもplugins版が優先されたために起こった今回の困ったこと。
これからはなにかしたらとりあえず備忘録代わりにQiitaに記録することにする。

謝辞

nafu003さんのこの投稿にすべてを救われました。ありがとうございます。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?