From: Tim Pease Date: 2007-01-18T08:33:14+09:00 Subject: Re: RubyGems 0.9.1 problem (was Re: Struggling With RubyGems) On 1/17/07, James Edward Gray II wrote: > On Jan 17, 2007, at 4:17 PM, David Goodlad wrote: > > > On 1/17/07, James Edward Gray II wrote: > >> On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote: > >> > >> > On Thu, Jan 18, 2007 at 06:29:09AM +0900, James Edward Gray II > >> wrote: > >> >> I can't seen to query or install gems over here. Is anyone else > >> >> seeing something like this, or have I screwed up my local install? > >> >> > >> >> $ gem query -r --name-matches highline > >> >> > >> >> *** REMOTE GEMS *** > >> >> ERROR: While executing gem ... (NoMethodError) > >> >> undefined method `refresh' for # > >> > > >> > I'm getting the same thing after upgrading to 0.9.1, and on gem > >> > install or > >> > gem update as well. Help? > >> > >> This does appear to be related to my upgrade to 0.9.1. Downgrading > >> has resolved the issue, for now. > > > > I had the same issue. Deleting the 'source_cache' file from my gems > > directory solved it for me. > > Doing that with a 0.9.1 install does restore the ability to query. I > cannot install with it though: > > $ gem -v > 0.9.1 > $ gem query -r --name-matches highline > > *** REMOTE GEMS *** > Bulk updating Gem source index for: http://gems.rubyforge.org > > highline (1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.0.4, 1.0.2, > 1.0.1, 1.0.0, 0.6.1, 0.6.0, 0.5.0, 0.4.0, 0.3.0, 0.2.0) > HighLine is a high-level command-line IO library. > $ sudo gem install highline > ERROR: While executing gem ... (NoMethodError) > undefined method `source_index' for # > James, did you clear out the source_cache for root? Your query worked because you did it as you. Your install did not work because you tried to do it as root. Just a thought. Blessings, TwP