1
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 3 years have passed since last update.

rbenv: version `x.x.x` is not installedエラーの解消法

1
Posted at

初めに

今回はRubyでバージョンのエラーが起こったときの解決策を紹介していきます

本文

今回紹介していくのは下記のようなエラーが発生した場合の対応です

% bundle install
rbenv: version `3.2.0' is not installed (set by /Users/~~/.ruby-version)

まず、インストールできるRubyのバージョンを確認します

% rbenv install --list

まずはbrewbenvのアプデートをしていきます

% brew update && brew upgrade ruby-build

こうすることでインストールできるバージョンが変わっているはずなので、再度下記のコマンドを使用してほしいバージョンが取得できるようになってるかを確認します

% rbenv install --list

取得したいバージョンを指定してダウンロードし、設定をしたら終了です
ダウンロードや設定の方法は下記の記事にまとめてあります
https://qiita.com/ryuji_sato/items/f38e1fe3368f2dbfeed5

最後に

今回はRubyのバージョンエラーを解消する方法を紹介していきました
どなたかのお役に立てれば幸いです

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