2
如果我跑identify -version
沒有在命令行中我得到:導軌找不到Idenfity(ImageMagick的),即使COMMANDLINES顯示它的安裝
Version: ImageMagick 6.7.4-2 2012-01-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
但我的Rails應用程序提供了以下每當我提交表單(其從上傳的圖像中縮略圖):
Could Not Run The `Identify` Command. Please Install ImageMagick.
任何意見將不勝感激!
這是我的.bash_profile
有:
PATH=$PATH:$HOME/bin:/usr/sbin:/sbin/:/usr/bin:$HOME/.rvm
export PATH=$HOME/local/imagemagick/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH
我production.rb有回形針正確的配置,以及:
Paperclip.options[:command_path] = "/usr/local/bin"
只是爲了檢查,什麼是'這identify'的輸出?它在'/ usr/local/bin'中嗎?從你的'$ PATH'看起來它可能在'$ HOME/local/imagemagick/bin'中。 – blahdiblah 2012-02-01 00:30:16
識別給出'/ usr/local/bin/identify' – Jacob 2012-02-01 00:45:14