Bundle can't install RMagick gem on Mac OSX 10.7
I suggest that you use brew to manage your binary dependencies. You can easily install imageMagick with brew, like this:
brew install imagemagick
This is what I have on my system:
imagemagick 6.7.1-1
http://www.imagemagick.org
Depends on: jpeg, libtiff, little-cms, jasper
/usr/local/Cellar/imagemagick/6.7.1-1 (1389 files, 32M)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/imagemagick.rb
And I have the same setup as you have in terms of machine and ruby-version.
Error installing Rmagick on Mac OS X
I would strongly recommend you try homebrew, which is a great replacement for macports:
- http://brew.sh
- http://github.com/mxcl/homebrew
Once you get homebrew installed, you should be able to install imagemagick and rmagick very easily:
brew install imagemagick # will take a while!
gem install rmagick
More info here:
http://www.codedrop.ca/blog/archives/214
and here:
http://weblogs.manas.com.ar/mverzilli/2010/05/19/install-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in-the-painless-way-with-homebrewinstall-the-rmagick-gem-in/
UPDATE: (thanks to JJD and this answer)
Try to install without openpmp if you are having trouble with a chiliproject install:
brew install imagemagick --disable-openmp
UPDATE X2: (thanks to Ramon Araujo's comment)
If you have previously installed imagemagick with homebrew, you will have to unlink it before you install again:
brew unlink imagemagick
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
should work.
Check the discussion about this in homebrew/issues/16625
Update:
Thanks @faraz for the nice one-liner command:
cd "`Magick-config --prefix`/lib"; ln -s libMagick++-Q8.7.dylib libMagick++.dylib; ln -s libMagickCore-Q8.7.dylib libMagickCore.dylib; ln -s libMagickWand-Q8.7.dylib libMagickWand.dylib
Can't install RMagick on OS X Mountain Lion
Fixed it by following these steps. Arrggh!
- Install XCode 4.4
- Install command line tools (from the preferences in Xcode)
- Install XQuartz
- Install ImageMagic (brew install —vd imagemagick)
- sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
- mdfind MagickWand.h (to get the path to the MagickWand.h file)
- C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick gem install rmagick
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 libMagickWand.dylib
Hope this helps.
Related Topics
Best Ruby Idiom for "Nil or Zero"
Parse CSV File with Header Fields as Attributes for Each Row
How to Include Video in Jekyll Markdown Blog
What's the Difference Between "Includes" and "Preload" in an Activerecord Query
How to Save Values into a Yaml File
When to Use a Lambda in Ruby on Rails
Change the Context/Binding Inside a Block in Ruby
Rails. How to Store Time of Day (For Schedule)
Where in the Ruby Language Is %Q, %W, etc., Defined
When to Use Curly Braces VS Parenthesis in Expect Rspec Method
How to Call an Older Version of a Gem from the Commandline
How to Measure the Size of a Ruby Object
Ruby Invalid Byte Sequence in Utf-8
Ruby on Rails Advanced JSON Serialization
Executing User-Supplied Ruby Code on a Web Server
How to Generate Rdoc for (All Of) Rails
How to Get Rspec-2 to Give the Full Trace Associated with a Test Failure