加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – sh:识别:命令未找到imagemagick rails 3

发布时间:2020-12-17 03:29:55 所属栏目:百科 来源:网络整理
导读:我正在使用带有rails 3的 ImageMagick-6.7.4,并且还将paperclip gem安装到我的应用程序中.我按照 this guide安装了imagemagick,它可以从我的终端工作,但不能用我的rails应用程序.我在development.rb中包含了identify命令的路径 Paperclip.options[:command_p
我正在使用带有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

解决方法

您可以尝试使用符号链接从您的目录中识别到usr / bin目录.

ln -s /your/imagemagick/path/identify /usr/bin/identify

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读