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!

4 Comments »

  1. perfect solution, thanks

    Comment by SDSL — September 22, 2008 @ 4:42 am

  2. Thanks!

    so simple, but it really helped me out

    Comment by Jesse — September 27, 2008 @ 4:14 pm

  3. Glad it could help!

    Comment by Jason — September 27, 2008 @ 4:48 pm

  4. Thanks for this perfectly working simple solution.

    Comment by Szymon Je┼╝ — October 28, 2008 @ 7:19 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment