• Home »
  • Errors »
  • rubygems.rb:578:in report_activate_error: RubyGem version error: rspec(1.1.11 not = 1.2.4) (Gem::LoadError)

rubygems.rb:578:in report_activate_error: RubyGem version error: rspec(1.1.11 not = 1.2.4) (Gem::LoadError)

Earlier when attempting to use request-log-analyzer on a new server I had just installed it on I got the error stated below. There are numerous updates to the gems I was using to fulfill all of the requirements of the request-log-analyzer gem. I went through and updated many of the gems until I ran into an issue with the hoe gem that required an update to rubygems. Once I upgraded rubygems everything worked properly without throwing any errors. I probably could have simply updated rubygems and things would have worked fine without upgrading all of the other gems it was complaining about.

Entire request-log-analyzer Error:

[root@dev archive]# request-log-analyzer production.log-20100104 --output HTML --mail alex@example.com
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': RubyGem version error: rspec(1.1.11 not >= 1.2.4) (Gem::LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:134:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:158:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:157:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:157:in `activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from /usr/local/bin/request-log-analyzer:18

As you can see above the request-log-analyzer application was complaining about the rspec version. I verified the rspec version using the below command.

Check The Rspec Gem Version:

[root@dev archive]# gem list rspec
*** LOCAL GEMS ***
rspec (1.1.11)

To resolve this error I simply updated the rspec gem using the syntax below.

Upgrade Rspec Gem:

[root@dev archive]# gem install rspec
**************************************************

Thank you for installing rspec-1.2.9

Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.

**************************************************
Successfully installed rspec-1.2.9
1 gem installed
Installing ri documentation for rspec-1.2.9...
Installing RDoc documentation for rspec-1.2.9...
Could not find main page README.rdoc
Could not find main page README.rdoc

After upgrading the rspec gem I no longer received the initial error but now request-log-analyzer was complaining about the cucumber gem version. I will be writing another article relating specifically to the cucumber gem error just in case somebody searches for that specific error they can be pointed in the proper direction. Anyhow instead of worrying about upgrading each gem that is being complained about you can simply upgrade your rubygems version. On this server I initially had rubygems 1.2 installed and I upgraded to rubygems 1.3.5 which resolved any dependency issues. You can upgrade rubygems by following the directions here. Ignore the initial portion of the article that speaks about upgrade issues and simply follow the steps at the bottom which include manually downloading the latest rubygems, unpacking, and running the setup. This will install an updated version of the gem application that will resolve the dependency issues and request-log-analyzer should still function without issue.

Ruby Best Practices (Paperback)

By (author): Gregory T Brown


List Price: $34.99 USD
New From: $17.31 USD In Stock
Used from: $1.74 USD In Stock

The Ruby Programming Language (Paperback)

By (author): David Flanagan, Yukihiro Matsumoto


List Price: $39.99 USD
New From: $21.48 USD In Stock
Used from: $11.49 USD In Stock

Share