【发布时间】:2014-01-15 12:29:21
【问题描述】:
一些上下文:
- Mac OSX 10.8.5
- Rails 3.2.15
我知道有很多 ImageMagick 问题,但似乎都没有帮助。任何帮助表示赞赏!
我正在开发一个使用回形针宝石作为照片附件的应用程序。它在其他计算机(已经安装了 ImageMagick)上运行顺利。我的种子文件上传图片。
我试着跑
bundle exec rake db:reset
但最终我得到...
rake aborted!
Validation failed: Photo file Could not run the `identify` command. Please install
ImageMagick., Photo file Could not run the `identify` command. Please install
ImageMagick.
所以我尽职尽责地尝试
sudo port uninstall ImageMagick
sudo port install ImageMagick
which identify
什么都没有发生。
虽然安装 ImageMagick 似乎有效,但它确实对我大喊大叫,这可能很重要:
Warning: Your DNS servers incorrectly claim to know the address of nonexistent
hosts. This may cause checksum mismatches for some ports.
编辑:
解决方案很简单。我在我的 .bash_profile 文件中添加了以下类似内容。
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
我希望我能解释一下它是如何工作的。
【问题讨论】:
-
您的
$PATH是否已配置为映射/opt/local/bin下的二进制文件? -
谢谢!你怎么知道?这似乎应该是默认的东西......
-
太棒了!发布您的解决方案作为答案并接受它。包括任何其他链接和资源,以便其他人可以解决类似问题。
标签: ruby-on-rails macos imagemagick paperclip macports