LoginSignup
2
3

More than 5 years have passed since last update.

[ruby] rbenvので最新のrubyをインストールするときはruby-buildのアップデートが必要

Last updated at Posted at 2017-05-27

環境: Mac OSX 10.11.6

$ rbenv install 2.4.1

ruby-build: definition not found: 2.4.1

The following versions contain `2.4.1' in the name:
  rbx-2.4.1

See all available versions with `rbenv install --list'.

If the version you need is missing, try upgrading ruby-build:

  cd /Users/username/.anyenv/envs/rbenv/plugins/ruby-build && git pull && cd -

ruby-build、そういえばgitリポジトリだったので
最後の指示通りgit pullで最新に更新する必要がある

cd /Users/username/.anyenv/envs/rbenv/plugins/ruby-build && git pull && cd -
$ rbenv install --list | grep 2.4
  2.2.4
  2.4.0-dev
  2.4.0-preview1
  2.4.0-preview2
  2.4.0-preview3
  2.4.0-rc1
  2.4.0
  2.4.1
  rbx-2.2.4
  rbx-2.4.0
  rbx-2.4.1

(2017年5月時点)
最新の2.4.1が増えたのでこれでOK

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