LoginSignup
0
0

More than 1 year has passed since last update.

mimemagic -v0.3.2がbundle installに失敗する理由と解決法

Posted at

なにこれ

mimemagicがrubygems.orgから取り下げられたせいで、
mimemagicのbundle installが失敗するようになった問題の理解と解決方法を備忘録として書く。

なぜbundle installが失敗するか

↓のようにmimemagic -v0.3.2を書いてるGemfile.lockがあるとします。

Gemfile.lock
…略
    mimemagic (0.3.2)
…略

bundle installする時の挙動は、
GemfileとGemfile.lockを見て、
欲しいgemがGemfile.lockに記載されてれば該当のversionをinstallしようとする。
(上の例だとv0.3.2)

ただ、mimemagicはv0..3.2がrubygemsに存在しない。
なので、bundle installが失敗する。

解決策

↓のように、rubygemsに存在するversionをinstallするようにする。

Gemfile.lock
…略
    mimemagic (0.3.10)
…略

参考記事

mimemagicの最新動向

セマンティック・バージョニングと、Gemfileのバージョン指定方法 - Gemfileでよく見る~>を使いこなす

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