small medium large xlarge

30 Jan 2011, 00:51
John R. Doner (1 post)

I have been programming Java in NetBeans for a long while, but I just bought the book “Using JRuby” (really well-written) and came to the point where the example in the book needed the gem Rubeus. I downloaded it, went to Tools/Ruby Gems in NetBeans, and managed to get it installed (or so it appeared) successfully. Then I tried to run the example code, but I get the message

/jruby1.6/lib/ruby/site_ruby/1.8/rubygems.rb:812:in `report_activate_error’: Could not find RubyGem activesupport (= 2.1.2) (Gem::LoadError)

    from /jruby1.6/lib/ruby/site_ruby/1.8/rubygems.rb:223:in `activate'
    from /jruby1.6/lib/ruby/site_ruby/1.8/rubygems.rb:258:in `activate'
    from org/jruby/ `each'
    from /jruby1.6/lib/ruby/site_ruby/1.8/rubygems.rb:257:in `activate'
    from /jruby1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
    from /Users/jrdoner/NetBeansProjects/RubyApplication4/lib/main.rb:14:in `(root)'

So apparently a gem needs to be activated, even after it’s installed. How do I do that?

Thanks in advance for any help.

John Doner

  You must be logged in to comment