我在rails 3中使用ImageMagick-6.7.4,还在我的应用程序中安装了paperclip gem。我跟随this guide安装了imagemagick,它可以在我的终端上运行,但不能在我的rails应用程序上运行。我在我的development.rb中包含了identify命令的路径,如下所示
Paperclip.options[:command_path]='/path-where-my-identify-got-installed/'但它仍然会给我一个错误,因为
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发布于 2012-01-04 16:06:02
您可以尝试使用symlink来标识从您的目录到usr/bin目录。
ln -s /your/imagemagick/path/identify /usr/bin/identifyhttps://stackoverflow.com/questions/8723506
复制相似问题