Problem w/ Paperclip, MacPorts, ImageMagick & Snow Leopard

Posted by Kyle Decot on Stack Overflow See other posts from Stack Overflow or by Kyle Decot
Published on 2011-01-08T01:55:51Z Indexed on 2011/01/10 3:53 UTC
Read the original article Hit count: 287

I'm attempting to use ImageMagick along w/ Paperclip to handle the images on my rails app. The problem is whenever I try to upload an image I get the following in the terminal:

[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /var/folders/go/goZ833AaFaqyvv5RnLqQmE+++TM/-Tmp-/stream20110107-6356-1xfs9j1-0.jpg is not recognized by the 'identify' command.>

I have added the following to my environments/development.rb file:

Paperclip.options[:command_path] = "/usr/local/bin"

If I try to interact w/ ImageMagick in the terminal by using "convert" or something similar I get:

dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/convert
  Reason: Incompatible library version: convert requires version 10.0.0 or later, but libltdl.7.dylib provides version 9.0.0
Trace/BPT trap

I've already tried updating everything w/ port but the problem still persists. Does anyone have any ideas or suggestions?

© Stack Overflow or respective owner

Related posts about ruby-on-rails3

Related posts about terminal