segmentation fault on RMagick2

Hi, I'm getting this error when I try to create a migration file:

$ script/generate migration create_session
RMagick2.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10]

Abort trap

I'm not sure how to solve it. Any ideas?

I just uninstalled ImageMagick, then reinstalled it.
Then uninstalled RMagick and reinstalled it.

Then the error messages said that a number of gems were
I reinstalled them.

Next, I was getting the error on a completely different gem
So I uninstalled that gem and reinstalled it.

Now I can actually execute my command but with an error:

$ script/generate migration create_session
WARNING: Nokogiri was built against LibXML version 2.7.8, but has
dynamically loaded 2.7.3
Gem::SourceIndex#search support for Regexp patterns is deprecated, use
      exists db/migrate
      create db/migrate/20110124171504_create_session.rb