mindsifter

sifting through the thoughts in my mind
Copyright Michael D'Auria © 2008

Categories

Bookmarks

Gotcha When Upgrading Ruby January 10th, 2008

I decided to upgrade my ruby version from 1.8.5 p114 to 1.8.6 p111 today and came across an error when I tried to run merb. Whenever I would try and run the merb command witihin my project it would get as far as “Compiling routes…”, then just stop output. I decided to install rdebug to inspect:


 $ sudo gem install rdebug

Then I could check out where it was failing:


 merb_project_dir:$ rdebug -d -x ./script/merb

I use ./script/merb here because I had frozen merb to the project so I poke around a bit. After a solid minute of output, there was something that stood out:


 bad version, 1.8.6 != 1.8.5

This might not trigger anything to you at first glance, but some of the rubygems you depend on are actually compiled to the version of ruby that you have. Offhand I can think of mysql, datamapper, sqlite3, do_mysql, do_sqlite3, and of course the reason merb was failing, RubyInline and ParseTree. Once I reinstalled these two i was golden:


 $ sudo gem install RubyInline ParseTree

Shoot me a comment if you ran into this as well because I couldn’t find anythnig on Google.

Read More.. | Filed under | Tags RubyInline