ImageMagick and Ruby on OSX
After arrrrcamp a few months ago, Joren pushed me to dive into Ruby on Rails again.
A few weeks ago we started our first commercial RoR project. For this product-catalog site we wanted an easy solution for image uploading and decided on Paperclip. This needs ImageMagick and that gave us some worries.
So if you are struggling with installing ImageMagick and getting it running for Ruby, try these steps;
Download the MacPorts dmg-installer, a packetmanager for osx, and install it.
When installed, fire up terminal and start typing;
sudo port install ImageMagick
This will take a while, go get yourself a coffee and when the installation is finished run the following commands
sudo port install ImageMagick sudo gem install rmagick
That’s it, I hope you enjoyed your coffee because you can grab the code on github and get coding now.
For a good introduction on how to use paperclip, there is a good railscast avaiable for that!
Oh, the guys from Openminds and Gorilla webdesign decided arrrrcamp deserved a second edition. That is comming on October 16th, so reserve your spot at arrrrcamp.be (for free). I’d recommend not to hesitate because it looks like reservations are flying out!











August 12th, 2009 at 10:44 am
and now we need to get it working with passenger
November 28th, 2010 at 12:44 pm
Wow great job! This is what I needed!