3
4

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-build で ruby のバージョンを2.4.0 に上げたときのメモ

Posted at

内容

rbenv+ruby-buildでruby 2.4.0 にupdateする際の方法メモ
毎度手順を忘れて、ruby-buildのREADMEを読んでいるので、ここにメモとして残しておく

前提

rbenv + ruby-buildを下記の手順でインストールしていること
https://github.com/rbenv/ruby-build#installing-as-an-rbenv-plugin-recommended

手順

To update ruby-build, run git pull to download the latest changes.

ということで対象ディレクトリにある、ruby-buildを git pull すれば良いとのこと。

インストール手順
% cd .rbenv/plugins/ruby-build
% git pull origin master
% rbenv install -l | grep 2.4.0 #2.4.0 が存在することを確認
% rbenv install 2.4.0
% rbenv global 2.4.0                                                                                                                                                      
% rbenv rehash                                                                                                                                                            
% ruby -v                                                                                                                                                                 
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin15]

以上で update完了

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?