问题描述
我有ImageMagick,RMagick和& PaperClip正常运行,包括 production.rb
文件中的配置 Paperclip.options [:command_path]
。
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.
我已经尝试了一切。我重新安装了ImageMagick等,但没有用。
I've tried everything. I've reinstalled ImageMagick, etc. but no avail.
任何帮助都将不胜感激。
Any help would be greatly appreciated.
推荐答案
您需要更改文件 production.rb
和 development.rb
这些是in:
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.
在MacOSX系统中,如果您使用的是另一个位置,只需将正确的路径放在那里。
In MacOSX system, if you are using another location, just put the right PATH there.
这篇关于突然间开始得到“无法运行`识别`命令”。请安装ImageMagick。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!