#184 ✓dupe
Jason F

circular gem conflict

Reported by Jason F | July 6th, 2009 @ 11:27 PM

I've tried this on Ubuntu, Mac OS and Centos, with the same results. Integrity won't work with rack 0.9.1 nor will it work without rack 0.9.1. IOW it won't work :)

I installed integrity, thin, and do_sqlite3.

Successfully installed integrity-0.1.10
Successfully installed thin-1.2.2
Successfully installed do_sqlite3-0.9.12

When I do "launch integrity" it complains about rack not being activated:

jfrankovitz@flatbox ~/git/proj/alt[master*]$ integrity launch
Make sure thin and do_sqlite3 are insatalled

/Library/Ruby/Site/1.8/rubygems.rb:279:in `activate': can't activate rack (>= 1.0.0, runtime) for ["thin-1.2.2"], already activated rack-0.9.1 for ["sinatra-0.9.1.1", "integrity-0.1.10"] (Gem::LoadError)
    from /Library/Ruby/Site/1.8/rubygems.rb:295:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `each'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `activate'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:35:in `require'
    from /Library/Ruby/Gems/1.8/gems/integrity-0.1.10/bin/../lib/integrity/installer.rb:47:in `launch'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:27:in `send'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:27:in `run'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:20:in `parse'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor.rb:78:in `start'
    from /Library/Ruby/Gems/1.8/gems/integrity-0.1.10/bin/integrity:4
    from /usr/bin/integrity:19:in `load'
    from /usr/bin/integrity:19

I try to uninstall rack 0.9.1:

jfrankovitz@flatbox ~/git/proj/alt[master*]$ sudo gem uninstall rack -v=0.9.1

You have requested to uninstall the gem:
    rack-0.9.1
rack-cache-0.4 depends on [rack (~> 0.4)]
rack-cache-0.5 depends on [rack (>= 0.4)]
waves-0.8.2 depends on [rack (~> 0.4)]
rspec-rails-1.2.4 depends on [rack (>= 0.4.0)]
sinatra-0.9.1.1 depends on [rack (>= 0.9.1, < 1.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  
Successfully uninstalled rack-0.9.1

...then integrity says it needs rack 0.9.1:

jfrankovitz@flatbox ~/git/proj/alt[master*]$ integrity launch
/Library/Ruby/Site/1.8/rubygems.rb:826:in `report_activate_error': RubyGem version error: rack(1.0.0 not >= 0.9.1, < 1.0) (Gem::LoadError)
    from /Library/Ruby/Site/1.8/rubygems.rb:260:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:295:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `each'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:295:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `each'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:67:in `gem'
    from /usr/bin/integrity:18

So I reinstall rack 0.9.1 and start all over:

jfrankovitz@flatbox ~/git/proj/alt[master*]$ sudo gem install rack -v=0.9.1
Successfully installed rack-0.9.1
1 gem installed
Installing ri documentation for rack-0.9.1...
Installing RDoc documentation for rack-0.9.1...
jfrankovitz@flatbox ~/git/proj/alt[master*]$ integrity launch
Make sure thin and do_sqlite3 are insatalled

/Library/Ruby/Site/1.8/rubygems.rb:279:in `activate': can't activate rack (>= 1.0.0, runtime) for ["thin-1.2.2"], already activated rack-0.9.1 for ["sinatra-0.9.1.1", "integrity-0.1.10"] (Gem::LoadError)
    from /Library/Ruby/Site/1.8/rubygems.rb:295:in `activate'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `each'
    from /Library/Ruby/Site/1.8/rubygems.rb:294:in `activate'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:35:in `require'
    from /Library/Ruby/Gems/1.8/gems/integrity-0.1.10/bin/../lib/integrity/installer.rb:47:in `launch'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:27:in `send'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:27:in `run'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor/task.rb:20:in `parse'
    from /Library/Ruby/Gems/1.8/gems/thor-0.9.9/lib/thor.rb:78:in `start'
    from /Library/Ruby/Gems/1.8/gems/integrity-0.1.10/bin/integrity:4
    from /usr/bin/integrity:19:in `load'
    from /usr/bin/integrity:19

Any ideas?

Thanks,
-Jason

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Automated continuous integration server that doesn't suck.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages