überthings, inc.

keepin’ the world über safe since 1977

Fixing the @#$!! RMagick.bundle: [BUG] Bus Error

October 27th, 2006 · 3 Comments

After upgrading gems on my Macbook Pro a few months ago, I started getting this horrible error whenever I tried to get to my application’s console in Rails.

The-Me:~/Sites/socialight michael$ script/console
Loading development environment.
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.14.1/lib/RMagick.bundle: [BUG] Bus Error
ruby 1.8.4 (2005-12-24) [i686-darwin8.6.1]

Abort trap

I tried everything. Reinstalling Ruby, Rails and the RMagick gem. Downloading new versions of ImageMagick and GraphicsMagick as discussed here. I threw DarwinPorts, fink, HiveLogic and even resorted to reading installation instructions, all to no avail. script/console seemed destined to be something I used on other machines, something I watched others caress lovingly. *sigh*

Then, one day, after half an hour of my usual round of aimless download and reinstallation of ImageMagick and GraphicsMagick, I finally got it. I randomly started reading the non-OS X install instructions for RMagick which pointed out that by adding the “–with-graphics-magick” option to ./configure, it forces RMagick to use GraphicsMagick instead of ImageMagick. Voila! It’s all working. Yippee!

Tags: Life

3 responses so far ↓

  • 1 leftist // Dec 28, 2006 at 8:03 pm

    Well, that’s a shame. I installed GraphicsMagick and recompiled RMagick, but I’m still having the same problem.

    Thing is, my problem is only occuring when I attempt to run an RMagick annotate function. Loading script/console shouldn’t be doing anything like what you’re describing unless you are requiring RMagick in your .irbrc or something.

    Stupid “Bus error”! That it’s prefaced by [BUG] would seem to add insult to injury.

  • 2 michael // Jan 4, 2007 at 10:42 am

    I had this issue because I was requiring RMagick in my environment.rb, so whenever I loaded it up - it would crash.

    Funnily enough, since solving this issue - I’ve now switched to using GD and the same issue happens again! Haven’t been able to fix it this time. I guess I’m just a sucker for punishment.
    ;)

  • 3 Installing RMagick on OS X Leopard // Mar 19, 2008 at 10:49 am

    [...] After the last time, I swore I’d never fall prey to RMagick’s convoluted and painful installation process. Unfortunately, to paraphrase the Giant - it happened again. [...]

You must log in to post a comment.