【发布时间】:2020-12-05 01:48:06
【问题描述】:
我正在使用带有 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
【问题讨论】: