无法上传照片,无法操纵minimagick

时间:2013-01-03 05:57:48

标签: ruby-on-rails imagemagick minimagick

使用Ruby on Rails,我试图在我的localhost上传照片。但是,似乎我无法上传并收到错误:

"Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: Command ("identify -ping /var/folders/rc/zy5w8vkd3m341pndp2d546nm0000gn/T/mini_magick20130103-78039-1m8b1lt.png") failed: {:status_code=>nil, :output=>"dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib\n Referenced from: /usr/local/bin/identify\n Reason: Incompatible library version: identify requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0\n"}"

我正在使用Homebrew。请帮帮我:(

软件:Mac OS 10.7.2(Lion),Xcode 4.1,ImageMagick-6.8.0-10

1 个答案:

答案 0 :(得分:0)

我遇到了同样的错误,我用下面的命令修复了这个错误:

jbao009-108: sudo find / -name "libfreetype.6.dylib" -print 

/Applications/Inkscape.app/Contents/Resources/lib/libfreetype.6.dylib
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Frameworks/GStreamer.framework/Versions/0.10/lib/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.4.10/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.4.11/lib/libfreetype.6.dylib
/usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.6.dylib
/usr/local/lib/libfreetype.6.dylib

jbao009-108: sudo cp /usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.6.dylib  /usr/local/lib/

这两个命令将找到最新的freetype并复制到system lib