4
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

rbenv+ruby-build で ruby のバージョンを2.4.0 に上げたときのメモ

内容

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完了

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
4
Help us understand the problem. What are the problem?