LoginSignup
1
1

More than 3 years have passed since last update.

画像投稿機能 rmagickがインストールに失敗する時 備忘録

Posted at

画像投稿機能のgemであるrmagickをインストールした時に怒られたエラー

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

エラー文の内容に沿って

gem install rmagick -v '4.0.0'

を実行するするも

ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config

と言って怒られた。

そこで、ImageMagick(バージョン7)をアンインストール

brew install imagemagick@6

アンインストールが終わったら、 ImageMagick(バージョン6)をインストール


brew install imagemagick@6

パッケージを有効化するために下記を実行する


brew link --force imagemagick@6

最後にbundle installを実行する

1
1
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
1
1