< Browse > Home / programming, ruby / Blog article: ImageMagick and Ruby on OSX

| Mobile | RSS

ImageMagick and Ruby on OSX

August 12th, 2009 | 1 Comment | Posted in programming, ruby

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!

Leave a Reply 1395 views, 1 so far today |
Follow Discussion

One Response to “ImageMagick and Ruby on OSX”

  1. joren Says:

    and now we need to get it working with passenger

Leave a Reply

Toots Thielemans `Special Project`-14.jpgToots Thielemans `Special Project`-13.jpgToots Thielemans `Special Project`-12.jpgToots Thielemans `Special Project`-11.jpgToots Thielemans `Special Project`-10.jpgToots Thielemans `Special Project`-9.jpgToots Thielemans `Special Project`-8.jpgToots Thielemans `Special Project`-7.jpgToots Thielemans `Special Project`-6.jpgToots Thielemans `Special Project`-5.jpgToots Thielemans `Special Project`-4.jpg
-->