Updating from Leopard 10.5 to Snow Leopard, 10.6 in regards to Ruby on Rails.
Posted by: Mark Barber

Updating from Leopard 10.5 to Snow Leopard, 10.6 in regards to Ruby on Rails.

What I had to do to make it work.

I had to reinstall the following technologies:

  1. Rails
  2. Mongrel
  3. ImageMagick
  4. rmagick

Misc Issues:

  1. “truncate” function stopped working, and I was able to remove it from my source.

Major Issues:

  1. ImageMagick and rmagick stopped working all together.

I updated ImageMagick and the rmagick ruby gem multiple times. After each attempt to update there was still the outstanding problem of “no decode delegate for this image format”.

The explanation of this error can be found here http://rmagick.rubyforge.org/install-faq.html#delegate. I ran the command “convert -list configure” and it stated that I did have the delegate’s for the images that were failing.

After hours of work I found this article which did indeed fix my problem. http://www.gregbenedict.com/2009/08/29/fixing-ruby-gems-mysql-and-passenger-phusion-on-snow-leopard-10-6/

This is the pertinent portion of the article, which shows the steps that corrected my issue.

{{{
Update 2: ImageMagick and RMagick
So the upgrade toasts Mac Ports and ImageMagick.
Yep, blow it all away. It’s too much of a pain.

rm -rf /opt/local

Now download Mac Ports for Snow Leopard and install.
You might want to go eat or get a beer for this next step. Then again, maybe not. You have a faster OS now! Nope, you still need that beer.

sudo port install libxml2

sudo port install ImageMagick

sudo gem install rmagick
}}}

I installed port via the dmg install found here

I also had an additional issue of a second install of ImageMacick in my path. I had installed this second copy while attempting to fix the “no decode delegate for this image format” error. I had to also remove this second copy so the /opt/local version would be the active/used version in my path.

Posted: 2009-09-06
News Blog, add Comments Here

mark@litdark.com