keeping things simple (hopefully)
August 22, 2008
Filed under: Ruby — Jason @ 4:15 pm

When trying to start out with using scRubyt, I started immediately got slammed by a stupid gem dependency error. This happened to me a few times a while back and I forgot how to fix it. I remember one time I had to uninstall a particular gem version in order to get it to work and realized another app needed. Ugghh.

Anyway, the gist of the problem is this: if you already have RubyInline installed and it’s greater than version 3.6.3, you’re gonna get this error:

Gem::Exception: can't activate RubyInline (= 3.6.3), already activated RubyInline-3.7.0]

or something similar.

After some google-fooing I came across this post where Ryan Davis gives a clue on what to do. The code snippet below works great with both versions of RubyInline installed. If you don’t even have RubyInline 3.6.3 installed then just install via this command sudo gem install RubyInline -v 3.6.3

Then remove the current require statements


require 'rubygems'
require 'scrubyt'

and replace with


require 'rubygems'
gem 'RubyInline', '= 3.6.3'
require 'scrubyt'

Good luck scraping!