[Rails]mimemagicが存在せずbundle installできないエラー

学習記録

はじめに

bundle installできない。

> bundle install --path vendor/bundle                                                                                    feature
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
Fetching gem metadata from https://rubygems.org/.........
Your bundle is locked to mimemagic (0.3.4), 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.4) has removed it. You'll need to update your bundle to a
version other than mimemagic (0.3.4) that hasn't been removed in order to install.
> bundle update mimemagic

エラー発生

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

# ~ 省略 ~

An error occurred while installing ffi (1.12.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.12.2' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  spring-watcher-listen was resolved to 2.0.1, which depends on
    listen was resolved to 3.1.5, which depends on
      rb-inotify was resolved to 0.10.1, which depends on
        ffi

こちらで解決

> bundle update mimemagic ffi puma

結論

minimagic のバージョンが存在しなかった為発生した。

コメント

タイトルとURLをコピーしました