LoginSignup
51
37

More than 5 years have passed since last update.

Macのzshでrbenvを使う

Last updated at Posted at 2017-01-09

brewコマンドでインストール

$ brew install rbenv ruby-build

.zshrcファイルに追記

export PATH="$HOME/.rbenv/bin:$PATH" 
eval "$(rbenv init - zsh)"
  • 変更した.zshrcを読み込み
$ source ~/.zshrc

Rubyのインストール

インストール可能なバージョンをリストアップ

$ rbenv install -l

指定のバージョンをインストール

$ rbenv install 2.4.0
$ rbenv global 2.4.0
$ rbenv rehash
51
37
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
51
37