Imagemagick issue on Lion installed with Homebrew

与世无争的帅哥 提交于 2019-11-28 01:09:55

I ran into the same issue. Running a software update on the operating system resolved it for me. The version of libfree is out of date. Paperclip, ImageMagick and Homebrew were all working fine.

There's a simpler solution. Either install freetype:

brew install freetype

or, if it's already installed, then you need to recreate the links:

brew unlink freetype && brew link freetype

this will fix everything for you. Well, not everything, but it'll at least fix this problem.

After a software update on OSX MoutainLion ImageMagick stopped working for me too, but simply following the steps taken by Chris worked:

brew update
brew remove imagemagick
brew install imagemagick

libfreetype was missing on my Mountain Lion (10.8) installation. In this case, installing XQuartz will replace the missing lib. http://xquartz.macosforge.org/landing/

I hope this helps to someone: After I try all these solution out there (update brew, reinstall imagemagick, unlink and link again) without success, came to my mind that Paperclip might be the issue. I just do:

 bundle update paperclip

And problem solved!

Note: imagemagick is working properly to me. When I run identify -format %wx%h /path/to/a/file from console, it works fine (I get the image's size). The 'identify' problem was happening only from my rails app.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!