简体   繁体   中英

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 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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM