11
13

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 5 years have passed since last update.

ImageMagick が新しくなったせいで RMagick が動かない問題

Last updated at Posted at 2013-09-25

なんか、ImageMagick をupgrade するたびに毎回なってめんどくさいアレのメモ〜 :alien:
ImageMagick の新しいバージョンを削除して、一個前のやつにしてあげればよい。

とりあえずImageMagick外します

$ brew unlink imagemagick

ImageMagickが入ってるところに行きます

$ cd /usr/local/Cellar/imagemagick

何がいるのか見ます

$ ls
./        ../       6.7.7-6/  6.8.0-10/ 6.8.6-3/

ほう、6.8.6-3 が新しいやつか(ΦωΦ)
一番新入りのやつを消す

$ rm -rf [新しいバージョン]

バージョン一覧見る

$ brew versions imagemagick
6.8.6-3  git checkout 870d5e9 /usr/local/Library/Formula/imagemagick.rb
6.8.0-10 git checkout 321b293 /usr/local/Library/Formula/imagemagick.rb //←これぽさ
6.7.7-6  git checkout 7d951fb /usr/local/Library/Formula/imagemagick.rb
6.7.5-7  git checkout f965101 /usr/local/Library/Formula/imagemagick.rb
6.7.1-1  git checkout 2c6e638 /usr/local/Library/Formula/imagemagick.rb
6.6.9-4  git checkout 4e7c332 /usr/local/Library/Formula/imagemagick.rb
6.6.7-10 git checkout 0476235 /usr/local/Library/Formula/imagemagick.rb
6.6.7-8  git checkout db99927 /usr/local/Library/Formula/imagemagick.rb
6.6.7-1  git checkout 7cd042f /usr/local/Library/Formula/imagemagick.rb
6.6.4-5  git checkout 53886de /usr/local/Library/Formula/imagemagick.rb
6.6.4-2  git checkout 2658d63 /usr/local/Library/Formula/imagemagick.rb
6.6.4-0  git checkout 2e50cf3 /usr/local/Library/Formula/imagemagick.rb
6.6.3-9  git checkout 46dc691 /usr/local/Library/Formula/imagemagick.rb
6.6.3-8  git checkout 9b5f4b5 /usr/local/Library/Formula/imagemagick.rb
・
・
・

二番目に新しいやつが多分今まで動いてたやつなので、その子に切り替える

$ git checkout [戻したいバージョンを指定]

リンクし直す

$ brew link imagemagick

rmagick 入れなおす〜

$ gem install rmagick

ヾ('ω')ノ゙:beers:

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?