LoginSignup
11
5

More than 5 years have passed since last update.

ImageMagick を古いものに変更する

Posted at

rails s しようとしたらこんなエラー

$ rails s
This installation of RMagick was configured with ImageMagick 6.9.1 but ImageMagick 6.9.2-4 is in use. (RuntimeError)

どうやら ImageMagick が新しすぎるらしいです。

前々日に brew upgrade したのが原因ですかね。。
新しいからダメっていわれるのつらい。

というわけでダウングレードします。

とりあえずインストール済みの ImageMagick のパッケージを調べてみます。

$ brew info imagemagick
imagemagick: stable 6.9.2-4 (bottled), HEAD
Tools and libraries to manipulate images in many formats
http://www.imagemagick.org
/usr/local/Cellar/imagemagick/6.8.9-8 (1433 files, 22M)
  Poured from bottle
/usr/local/Cellar/imagemagick/6.9.1-4 (1447 files, 21M)
  Poured from bottle
/usr/local/Cellar/imagemagick/6.9.2-4 (1448 files, 22M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/imagemagick.rb

あった。

/usr/local/Cellar/imagemagick/6.9.1-4 (1447 files, 21M)

そんなわけで今表立って 出てきやがる 出ていらっしゃる最新の ImageMagic にはご退場願い、古い子に切り替えます。

$ brew switch imagemagick 6.9.1-4
Cleaning /usr/local/Cellar/imagemagick/6.8.9-8
Cleaning /usr/local/Cellar/imagemagick/6.9.1-4
Cleaning /usr/local/Cellar/imagemagick/6.9.2-4
71 links created for /usr/local/Cellar/imagemagick/6.9.1-4

ここで再び ralis s するとちゃんと立ち上がった。よかった。

11
5
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
11
5