How to add the ImageMagick install to my path on Ubuntu

Posted by Josh on Stack Overflow See other posts from Stack Overflow or by Josh
Published on 2010-03-14T19:51:41Z Indexed on 2010/03/14 19:55 UTC
Read the original article Hit count: 319

Filed under:

I have had been on a roller coaster trying to get ImageMagick to work on my Ubuntu slice. I Whenever I try to upload an image I get the following error: /tmp/stream.1170.0 is not recognized by the 'identify' command.

If I type 'which identify' I get: /usr/local/bin/identify

If I run '/usr/local/bin/identify' or just 'identify', I get the following error: /usr/local/bin/identify: error while loading shared libraries: libMagickCore.so.3: cannot open shared object file: No such file or directory

If I run '/usr/bin/identify', ImageMagick is run just fine. How can I set my path to where when Paperclip runs the identify command, it points to /usr/bin/identify? Thanks.

p.s. I have tried adding this to paperclip.rb: Paperclip.options[:command_path] = '/usr/bin' and Paperclip.options[:command_path] = '/usr/local/bin'

© Stack Overflow or respective owner

Related posts about imagemagick