Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add the ImageMagick install to my path on Ubuntu

Tags:

imagemagick

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'

like image 735
Josh Avatar asked Mar 14 '10 19:03

Josh


People also ask

Where is ImageMagick installed Ubuntu?

By default, ImageMagick is installs binaries in /../usr/local/bin , libraries in /../usr/local/lib , header files in /../usr/local/include and documentation in /../usr/local/share .

Where does ImageMagick install?

It is located at: /usr/bin/convert. /usr/bin/mogrify.

Where can I find ImageMagick?

It runs on Linux, Windows, Mac Os X, iOS, Android OS, and others. The authoritative ImageMagick version 6 web site is https://legacy.imagemagick.org. The authoritative source code repository is https://github.com/ImageMagick/ImageMagick6. Find the latest release of ImageMagick, version 7, at https://imagemagick.org.


1 Answers

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
like image 138
el.pescado - нет войне Avatar answered Oct 06 '22 02:10

el.pescado - нет войне