LoginSignup
57
34

More than 3 years have passed since last update.

Railsがmimemagic無くてbundle installできない

Posted at

概要

2021年3月下旬、Ruby on Railsの依存していたmimemagicの0.3.5以下がyank(削除)されました。そのため以前はbundle installができていたのに急にできなくなった、といった事が起こります。

Fetching gem metadata from https://rubygems.org/........
Your bundle is locked to mimemagic (0.3.5), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.5) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
in order to install.

対応

本件については数日のあいだで状況が変わっているため、最新の情報をキャッチアップしてください。2021年3月28日時点では、Ruby on Railsの最新版である6.1.3.1にバージョンを上げることで解決できます。

Gemfile
-gem 'rails', '~> 6.1.1'
+gem 'rails', '~> 6.1.3.1'
$ bundle update rails

参考

なぜこうなったか、その他の対処方法等は各所で議論されていますが、以下がきれいにまとまっています。
mimemagicの最新動向 - HackMD

57
34
1

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
57
34