From: Eric Hodel Date: 2007-02-07T10:08:38+09:00 Subject: Re: Rubygem install "Invalid argument - sources-0.0.1.gem" On Feb 6, 2007, at 13:49, Jeremy Lecour wrote: >> cat -n /usr/local/lib/site_ruby/1.8/rubygems/package.rb | grep '26 >> [0-9]' > > 260 final_pos = @io.pos > 261 @io.pos = init_pos > 262 header = TarHeader.new(:name => name, :mode => mode, > 263 :size => size, :prefix => > prefix).to_s > 264 @io.write header > 265 @io.pos = final_pos > 266 end > 267 > 268 def mkdir(name, mode) > 269 raise ClosedIO if @closed Hrm, it seems that something bogus is going on with your installation. First, site_ruby should be under /usr/local/lib/ruby, not /usr/local/ lib. Second, line 264 should be "@io.pos = final_pos", not what you've got. Can you try removing /usr/local/lib/site_ruby/1.8/rubygems.rb and / usr/local/lib/site_ruby/1.8/rubygems/* and reinstalling? I suspect those files are from an older version of RubyGems and are getting in the way.