Problems installing RMagick with Paperclip in Rails 3

不羁的心 提交于 2019-12-07 15:13:18

问题


I'm trying to use paperclip in rails and when I'm doing the "bundle install" I'm getting the following error:

Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/mysql/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/seanhinton/.rvm/bin

What I'm wondering is how do I install RMagick (is that what I need?) on my machine (it's OSX 10.6)?

Cheers!


回答1:


RMagick is a ruby adapter for ImageMagick. Getting ImageMagick is a huge pain, and it doesn't come on your computer by default. Here's the easiest way to get it:

  1. Get Homebrew (Mac OS Package Manager).
  2. In terminal, run brew install imagemagick.
  3. Now add gem 'rmagick' to your Gemfile. (in your application root directory)
  4. Finally, in terminal, run bundle install.

That's it. Note that the imagemagick installer may take a while.



来源:https://stackoverflow.com/questions/4576105/problems-installing-rmagick-with-paperclip-in-rails-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!