ruby-on-rails - 无法运行 `identify` 命令。请安装 ImageMagick
问题描述
我正在使用 Paperclip 并在已部署的站点上出现此错误,而不是在我的本地服务器上。这就是为什么我越来越难以摆脱困境。
A Paperclip::Errors::CommandNotFoundError occurred in images#update:
enter code hereCould not run the `identify` command. Please install ImageMagick.
我已经尝试了这些解决方案,但无法解决这个问题(对于 ubuntu):
- 冉
apt-get install imagemagick
- 我不使用酿造。所以,无法使用
brew install imagemagick
- 将这些行添加并部署到 paperclip_options.yml
:image_magick_path: '/opt/ImageMagick/bin' :command_path: '/opt/ImageMagick/bin'
谁能建议如何解决此错误?
解决方案
推荐阅读
- bash - 如何在 unix 脚本中提取文件名的一部分并检查它是否存在
- javascript - 使用
标签为什么这里的监督变得如此琐碎,自以为是,肛门,无情和被动攻击?这是一个代码论坛。顺便说一句 -1
- swift - 将 UIBezierPath 转换为 PKStrokePath swift
- java - (不是 Recuisive)在 android java 中获取列表文件类型
- c# - FileSystemWatcher:将多个过滤器事件聚合成一个?
- python - Seaborn regplot:IndexError:数组索引过多
- java - Spring - 测试多线程问题
- c - 提高无损音频编码算法中位复制的速度(用 C 编写)
- mysql - 嘿!我无法使用 NodeJS 将 html 表单数据插入 MySQL 数据库
- google-analytics - 谷歌分析:关于点击和会话差异的 AdWords 提醒