From: Ryan Davis Date: 2009-09-11T07:18:29+09:00 Subject: Re: Ruby 1.9, Rubygems, and .gemspec warnings On Sep 10, 2009, at 14:36 , Rob Sanheim wrote: > On Thu, Sep 10, 2009 at 4:57 PM, Ryan Davis ruby@zenspider.com>wrote: > >> >> On Sep 10, 2009, at 13:50 , Ryan Davis wrote: >> >> >>> On Sep 10, 2009, at 13:42 , Rob Sanheim wrote: >>> >>> I don't think so, I can reproduce this without jeweler in the mix >>> at all. >>>> bug: >>>> >>>> http://rubyforge.org/tracker/index.php?func=detail&aid=27087&group_id=126&atid=575 >>>> >>>> code: >>>> >>>> http://github.com/rsanheim/ruby19_rubygems_bug/blob/09a9f683fe7848980e10ac7bd2291040ec11ea17/Rakefile >>>> >>>> failing build against ruby 1.9: >>>> >>>> http://runcoderun.com/rsanheim/ruby19_rubygems_bug/builds/09a9f683fe7848980e10ac7bd2291040ec11ea17/1/ruby_191 >>>> >>> >>> I just repro'd this with: >>> >>> % multiruby -rubygems -rrubygems/specification -e 0 >>>> ... >>>> VERSION = 1.9.1-p129 >>>> CMD = ~/.multiruby/install/1.9.1-p129/bin/ruby -rubygems >>>> -rrubygems/specification -e 0 >>>> >>>> WARNING: #' for nil:NilClass> >>>> ... >>>> RESULT = 0 >>>> >>>> TOTAL RESULT = 0 failures out of 4 >>>> >>>> Passed: 1.9.1-p129, 1.8.7-p72, 1.8.7-p160, 1.8.6-p368 >>>> Failed: >>>> >>> >>> That's easy enough to poke around at. I'll get eric's eyeballs on >>> it. >>> >> >> OK... Just figured it out. Something bad juju with 1.9's >> gem_prelude vs >> rubygems. Easy fix: >> >> % sudo gem uninstall rubygems-update >> >> then this should work: >> >> % multiruby -rubygems -rrubygems/specification -e 'gem "hoe"' >> >> >> > I don't remember how I installed gems on this box, but it didn't > involve the > rubygems update gem. I think rvm grabs gems from source, not sure: > > ~ $ ruby -v > ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.8.0] > ~ $ gem uninstall rubygems-update > ERROR: While executing gem ... (Gem::InstallError) > cannot uninstall, check `gem list -d rubygems-update` > ~ $ gem list |grep rubygems > ~ $ ruby -rubygems -rrubygems/specification -e 'gem "hoe"' > /Users/rsanheim/.rvm/ruby-1.9.1-p243/lib/ruby/site_ruby/1.9.1/ > rubygems.rb:827:in > `report_activate_error': Could not find RubyGem hoe (>= 0) > (Gem::LoadError) > from > /Users/rsanheim/.rvm/ruby-1.9.1-p243/lib/ruby/site_ruby/1.9.1/ > rubygems.rb:261:in > `activate' > from > /Users/rsanheim/.rvm/ruby-1.9.1-p243/lib/ruby/site_ruby/1.9.1/ > rubygems.rb:68:in > `gem' > from -e:1:in `
' Why do you have rubygems installed on 1.9.1? I think that's the entire problem. rm -r /Users/rsanheim/.rvm/ruby-1.9.1-p243/lib/ruby/site_ruby/1.9.1/ rubygem*