sh:识别:命令未找到imagemagick rails 3 [英] sh: identify: command not found imagemagick rails 3
本文介绍了sh:识别:命令未找到imagemagick rails 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用带有rails 3的ImageMagick-6.7.4,并且还将 paperclip
gem安装到我的应用程序中。我按照本指南安装 imagemagick
它适用于我的终端,但不适用于我的rails应用程序。我在development.rb中包含了identify命令的路径为
I am using ImageMagick-6.7.4 with rails 3 and also installed the paperclip
gem to my application. I followed this guide to install imagemagick
and it works from my terminal but not with my rails app. I have included the path for the identify command in my development.rb as
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目录。
You can try making symlink to identify from your directory to usr/bin directory.
ln -s /your/imagemagick/path/identify /usr/bin/identify
这篇关于sh:识别:命令未找到imagemagick rails 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文