Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All of a sudden started getting "Could Not Run The `Identify` Command. Please Install ImageMagick."

I've had ImageMagick, RMagick, & PaperClip working properly with everything setup including the config Paperclip.options[:command_path] in production.rb file.

All of a sudden I've started getting the following error:

Could Not Run The `Identify` Command. Please Install ImageMagick.

I've tried everything. I've reinstalled ImageMagick, etc. but no avail.

Any help would be greatly appreciated.

like image 900
Jacob Avatar asked Jan 04 '12 01:01

Jacob


3 Answers

From a terminal, run the following command:

sudo apt-get install imagemagick
like image 103
danielgatis Avatar answered Sep 29 '22 22:09

danielgatis


You need to change the files production.rb and development.rb which are in:

config/environments:

# Paperclip config:
Paperclip.options[:image_magick_path] = "/opt/ImageMagick/bin"
Paperclip.options[:command_path] = "/opt/ImageMagick/bin"

Just add those two lines just before the last line and restart the server.

In MacOSX system, if you are using another location, just put the right PATH there.

like image 44
Cris R Avatar answered Sep 29 '22 23:09

Cris R


For Mac users: just run the command brew install imagemagick.

like image 41
BilalReffas Avatar answered Sep 30 '22 00:09

BilalReffas