2010-06-15
By Ivo Dancet
Tags:

rvm

Horror story, part II

Horror story, part II

After my search from earlier this week I encountered another hard-to-debug problem.

After reading an article about using gemsets to isolate a specific environment, I was ready to try the rvm-gemset-thingy in a new project we're working on.

I already had rvm on my MacBook Pro, so this ought to be a breeze. After upgrading rvm to the newest version I installed a .rvmrc file and ran bundler install and I thought I was all set. The result, however, was very much the contrary!

I started to get all kinds of errors like:

          **Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance.
            You can install the extension as follows:
            gem install bson_ext
            
            If you continue to receive this message after installing, make sure that the
            bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.
          

and like:

~/.rvm/gems/ruby-1.8.7-p249@carr/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.bundle, 9): no suitable image found.
          

After a lot of searching and blaming mongo (which I'm using for the first time), I found this stackoverflow answer. I remembered I had setup rvm on Leopard and then upgraded to Snow Leopard.

So I did a complete reinstall of rvm and was really pleased to see everything working as expected. I hope I can save someone a bunch of time with this.

blog comments powered by Disqus
About
This blog is written by Wouter Vancraeynest and Ivo Dancet and is about what we come across while working at our company by2.be, located in Bruges, Belgium. This can be anything related - though sometimes only remotely - to programming, testing, marketing, Ruby, Apple and other things we do and love ...
Recent posts
Optimizing Vim: tab style
haml-js and jammit
VimRoom
Hudson for a Rails3 project
Looking up Rails(3) routes
Horror story, part II
All tags
Jammit - SaaS - Rails - WriteRoom - Haml - rSpec - Vim - Ruby on Rails - rcov - Cucumber - humans - continuous integration - Hudson - Rails3 - testing - rSquery - haml-js - Bundler - rvm - backbone.js - Selenium
rSquery
Some time ago we made rSquery to be able to easily use jQuery matchers in Selenium projects. You may want to check it out on github. By now this project is not in active development anymore but older projects can still profit from it. (We still use it)