9
2

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.

「Rails」bundle installでAn error occurred while installing mimemagic (0.3.10), and Bundler cannot continue.の対処法

Last updated at Posted at 2021-04-27

エラー文章

MacOS ターミナル
An error occurred while installing mimemagic (0.3.10), and Bundler cannot continue.
Make sure that `gem install mimemagic -v '0.3.10' --source 'https://rubygems.org/'` succeeds before bundling.

上に遡るとこんなことが書いてある

MacOS ターミナル
Fetching mimemagic 0.3.10
Installing mimemagic 0.3.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

shared-mime-infoをインストールする

MacOS ターミナル
brew install shared-mime-info

bundle installをする

MacOS ターミナル
bundle install

mimemagicがアップデートされて無事エラーが無くなる。

2021/8/2 補足

マークダウンを整えました。

9
2
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
9
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?