2
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 1 year has passed since last update.

【備忘録】rbenvの導入(anyenv経由)

Last updated at Posted at 2022-01-19
# rbenvのインストール
$ anyenv install rbenv

# 初期化処理をzshrc記述
$ echo 'eval "$(rbenv init -)"' >> ~/.zshrc

# インストールできるRubyの一覧表示
$ rbenv install -l

# 3.1.0をインストール
$ rbenv install 3.1.0

# ~/.rbenv/versions/*/bin/ 以下のファイルを ~/.rbenv/shims/ 以下にコピー
$ rbenv rehash

# グローバル指定
$ rbenv global 3.1.0

# バージョンの確認
$ ruby -v

参考記事:https://mogulla3.tech/articles/2020-12-29-01

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