Rails and OS X: How to install rmagick?

rmagick has a problem working with imagemagick (>= 6.8.0-10) from homebrew. You can either update rmagick gem by bundle update rmagick or manually symbol link some dylib to make it work: $ cd “`Magick-config –prefix`lib” $ ln -s libMagick++-Q16.7.dylib libMagick++.dylib $ ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib $ ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib After that gem install rmagick … Read more

ImageMagick 7 with RMagick 2.16 on MacOS Sierra Can’t find MagickWand.h

I have just encountered and solved this issue on a new Mac running Sierra. There seems to be no solution for ImageMagick 7 at this time. Uninstall existing imagemagick if needed Install version 6: brew install imagemagick@6 Since this is keg-only, you should then force-link it: brew link –force imagemagick@6 This installed imagemagick version 6.9.7-4 … Read more

rmagick and OS X Lion

I had the same problem and resolved it by uninstalling ImageMagick, removing the rmagick gem and running bundle install again. Make sure the rmagick gem is completely gone from your ~/.rvm/gems/ruby-1.8.7-p334/gems/ folder before re-installing and running bundle install and it should at least get you beyond that error.

RMagick complains it was configured with a different version of ImageMagick

the same thing happened to me but the solution was a bit simpler than uninstalling imageMagick. It sounds like Rmagick’s config file isn’t updated to use your updated imagemagick so try sudo gem uninstall rmagick sudo gem install rmagick restart your server. I took a closer look and noticed you had Rmagick configured for a … Read more

Resize existing images to new style in paperclip & RMagick

You want the reprocess! method of Paperclip::Attachment. See the docs. class User < ActiveRecord::Base has_attached_file :avatar, :styles => { :medium => “300×300>”, :thumb => “100×100>” } end # Console… >> User.find_each { |u| u.avatar.reprocess! } Also, according to the comments before the reprocess! method, there’s a paperclip:refresh Rake task, which might be easier.

ImageMagick / RMagick – Can’t install RMagick 2.13.1. Can’t find Magick-config

I was getting the same error and it got resolved after installing the libmagick9-dev library on ubuntu 11. Update (Thanks to the commenters – Dec. 2012) $ sudo apt-get install libmagickwand-dev or $ sudo apt-get install graphicsmagick-libmagick-dev-compat for ubuntu 12 $ sudo apt-get install libmagickwand-dev or $ sudo apt-get install libmagick9-dev for ubuntu 11 or … Read more

Error installing Rmagick on Mountain Lion

It appears it’s a problem reported on the Homebrew github repo (https://github.com/mxcl/homebrew/issues/16625) blaming rmagick itself not supporting newer versions of imagemagick. On that same issue (https://github.com/mxcl/homebrew/issues/16625#issuecomment-11519383), you can find this link: https://coderwall.com/p/wnomjg which actually worked for me. This is what he does: cd /usr/local/Cellar/imagemagick/6.8.0-10/lib ln -s libMagick++-Q16.7.dylib libMagick++.dylib ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib ln -s libMagickWand-Q16.7.dylib … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)