0
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.

【Rails】bundle install Your Ruby version is 3.0.2, but your Gemfile specified 3.0.4の対処法

Posted at

症状

DockerでGemfileのrubyバージョンを変更した後、ローカルでサーバーを実行したとき、下記のエラーが発生しました Gemfileのバージョンが違うと怒られているようです。 ただ、Docker側でバージョンが3.0.4で使っているので、できればGemfileのバージョンを変えたくない・・・。
error
Your Ruby version is 3.0.2, but your Gemfile specified 3.0.4
Gemfile
ruby '3.0.4'
Gemfile.lock
RUBY VERSION
   ruby 3.0.4p107

解決策

以下のサイトにアクセスして、ローカル環境に該当のバージョンのrubyを入れて、解決しました。

参考

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