installing RMagick gem with fink

NOTE; this article is written for the most current rmagick-1.15.9 There are lots of articles about how to install ImageMagick and the RMagick gem, but none of them really cut to the chase in my opinion. Here is how to do it in no time at all, using fink.

#install imagemagick (and save some time by apt-getting ghostscript binaries)
sudo apt-get install ghostscript
sudo fink install imagemagick imagemagick10-dev

#set up stuff for rmagick compilation
export LIBRARY_PATH='/sw/lib'

# the location of this directory might be different if you didn't install rubygems with fink.
cd /sw/lib/ruby/gems/1.8/gems/rmagick-1.15.9
sudo chmod a+x configure
sudo ./configure --prefix=/sw    #point to fink installation
sudo gem install rmagick
actionmailer ActionView ajax alphadecimal audio autotest BDD blocks capistrano ssh ruby controller css dashboard widget delegate dog puppy naming name DRM email obfuscation exceptions factory pattern filemerge find and replace finder fink fixtures fun gem google maps helper helpers imagemagick Intertrust javascript logo math meetup model openssl OS X patch Pioneer Electronics plugin polymorphism prototype.js rails rake rmagick RSA encryption ruby script shoulda subversion SyncTV TDD testing textmate tricks unique hashes unix shell validation view yaml zebra stripes