tags:

views:

400

answers:

2

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'

+1  A: 

Add LD_LIBRARY_PATH=/usr/local/lib to your environment.

Alternatively, you can install ImageMagick from repositories, it should work out-of-the-box:

sudo apt-get install imagemagick
el.pescado
Thanks. That worked.
Josh
+1  A: 

To get rid of this error i executed ldconfig /usr/local/lib

ASDFG
Thanks! This is what I needed to do when I had the same problem. (Why isn't this command in the make install target?)
ראובן