6/22/2007 Please check out an updated version here: http://pastie.caboo.se/72596
The impatient can simply grab the shell script and run with it.
It was basically an issue of configuring the right load paths for ImageMagick.
My Story (After Wasting So Much Time I Had to Share This)
So here’s the scenario, I come back to an office mac I haven’t touched for months and try to get image manipulation working in my toy rails app. But instead of working, when I go to the image section, the whole thing explodes. All the other parts are working fine. Something, like a dreaded “bus error” or such.
Hmmm… I got all this working on a clunky iBook so it must be easy. Or so I thought…
After stumbling about on the net and ruining a perfectly working configuration of ImageMagick on my iBook (that takes forever to compile this stuff) as well, I finally got the whole thing working (on my intel mac at least).
Turns out I needed to properly configure the load paths for ImageMagick and set them straight in my .bash_profile.
To save you the trouble, I’ve prepared a shell script that you can run by downloading it somewhere and simply typing:
sudo sh rmagick_imagemagick_redo_osx.sh
Please review the shell script thoroughly. Running it as sudo will save you from typing the password at regular intervals for the “make install” step but it also means you’re handing over your computer.
I don’t have any destructive actions such as “remove” in the script so at most you’ll get a bunch of unwanted source files in a folder you can delete later (conveniently labeled “delete_this_later”).

Appears to have worked like a charm! Thanks so much – and thanks for prefixing everything with /usr/local… Cheers!
DH has been murdering my rails blog. Thanks so much for the comment. I’m glad people found it useful!
Thank you for this marvelous work! I blew a whole day dealing with this before coming upon your tutorial. Thanks again!
After writing this post about the pain of installing *Magick, I’d pretty much given up until I found your script. Looks like it might have done it.
Dude, you are my hero.
Thank you soooo much! That worked great for me. To get the install to run, I had to do a apt-get remove the imagemagick packages from my fink install.
$ apt-cache search imagemagick | awk ‘{print $1}’ | xargs sudo apt-get remove
Then, I kept getting errors about not being able to find a ghostscript font, but linking libwmf to the (non-existant) ghostscript folder fixed that:
$ sudo ln -s /usr/local/share/libwmf /usr/local/share/ghostscript
In any case, thanks so much for writing this. It was very helpful and saved me a ton of time. I tried to get ImageMagick up on my MacBook a month or so ago, but didn’t find this at the time and didn’t manage to get it working ;-)
Thank you for doing the leg work and figuring out the right set of dependancies!!!
-Ryan Erwin Shanghai, China www.ryanerwin.com
The versions in this script are outdated now and will either not be found or throw compilation errors. To fix that, swap in these versions as of this posting date:
echo installing imagemagick curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.4-10.tar.gz tar xzvf ImageMagick-6.3.4-10.tar.gz cd ImageMagick-6.3.4 export CPPFLAGS=-I/usr/local/include export LDFLAGS=-L/usr/local/lib ./configure –prefix=/usr/local –disable-static –with-modules –without-perl –without-magick-plus-plus –with-quantum-depth=8 –with-gs-font-dir=/usr/local/share/ghostscript/fonts make sudo make install cd ~/$dir
echo now for rmagick! curl -O http://rubyforge.rubyuser.de/rmagick/RMagick-1.15.7.tar.gz tar xvzf RMagick-1.15.7.tar.gz cd RMagick-1.15.7 make clean ./configure make sudo make install cd ~/$dir
Thanks alot.. I just reinstalled Rmagick out of necessity on my ibook.. I wiped my hard drive not too long ago. Last time I did this it tooke me two days to figure out. This time it only took about an hour.. One thing I need to point out is that the link for imagemagick in the shell script is no good.. I updated two links two make it work.. line 73 should read curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.2-9.tar.gz
and line 84 should be curl -O http://rubyforge.rubyuser.de/rmagick/RMagick-1.15.8.tar.gz
as of 12/14/2007… I had a problem on my first run because it couldn’t find imagemagick.. So if you have these problems make sure and substitue for current versions of everything that needs to be installed.. Once again, thank you for your work.. I love shell scripts for automation..