2013-01-03 44 views
0

使用Ruby on Rails時,我試圖在本地主機上上傳照片。但是,似乎我不能上傳並得到一個錯誤:無法上傳照片,無法操作minimagick

"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"}" 

我正在使用自制軟件。請幫我這個:(

軟件:MAC OS 10.7.2(獅子)時,Xcode 4.1,ImageMagick的-6.8.0-10

+0

「找出需要版本14.0.0或更高版本,但libfreetype.6.dylib提供了版本13.0.0」建議你需要升級freetype。 –

+0

它的工作表示感謝! – user1944672

回答

0

我遇到了同樣的錯誤,我用下面的命令來修復這個bug :

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並複製到系統庫