突然间开始得到“无法运行`识别`命令”。请安装ImageMagick。“ [英] All of a sudden started getting "Could Not Run The `Identify` Command. Please Install ImageMagick."

查看:391
本文介绍了突然间开始得到“无法运行`识别`命令”。请安装ImageMagick。“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有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。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆