sh: identify: command not found imagemagick rails 3

大憨熊 提交于 2020-01-13 01:42:43

问题


I am using ImageMagick-6.7.4 with rails 3 and also installed the paperclip gem to my application. I followed this guide to install imagemagick and it works from my terminal but not with my rails app. I have included the path for the identify command in my development.rb as

Paperclip.options[:command_path]='/path-where-my-identify-got-installed/'

but it still gives me an error as

Command :: identify -format %wx%h'/var/folders/Cd/CdjXsnlyEPyFqs4pwH83T++++TI/-Tmp-/stream20120104-2402-5iizym-0.png[0]'[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Could not run the `identify` command. 
Please installImageMagick.>Command :: identify -format %wx%h '/var/folders/Cd/CdjXsnlyEPyFqs4pwH83T++++TI/-Tmp-/stream20120104-2402-5iizym-0.png[0]'[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>SQL (0.1ms)  BEGIN

回答1:


You can try making symlink to identify from your directory to usr/bin directory.

ln -s /your/imagemagick/path/identify /usr/bin/identify


来源:https://stackoverflow.com/questions/8723506/sh-identify-command-not-found-imagemagick-rails-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!