首页 > 解决方案 > 无法运行 `identify` 命令。请安装 ImageMagick

问题描述

我正在使用 Paperclip 并在已部署的站点上出现此错误,而不是在我的本地服务器上。这就是为什么我越来越难以摆脱困境。

A Paperclip::Errors::CommandNotFoundError occurred in images#update:
enter code hereCould not run the `identify` command. Please install ImageMagick.

我已经尝试了这些解决方案,但无法解决这个问题(对于 ubuntu):

  1. apt-get install imagemagick
  2. 我不使用酿造。所以,无法使用brew install imagemagick
  3. 将这些行添加并部署到 paperclip_options.yml

:image_magick_path: '/opt/ImageMagick/bin' :command_path: '/opt/ImageMagick/bin'

谁能建议如何解决此错误?

标签: ruby-on-railsruby-on-rails-3rubygemsimagemagickpaperclip

解决方案


推荐阅读