开发者

Problems installing RMagick with Paperclip in Rails 3

I'm trying to use paperclip in rails and when I'm doing the "bundle install" I'm getting the followin开发者_开发百科g 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜