From: matt@... (matt neuburg) Date: 2009-06-02T09:26:30+09:00 Subject: Re: My rubygems is completely broken (EOFErrors) Doug McBride wrote: > Here's my environment followed by what I'm seeing. I dug into the > code and found out that the "bad URI" it's complaining about is nil, > which is indeed pretty bad for a URI. I've searched for an answer in > vain. I've reinstalled rubygems by running setup.rb from the latest > rubygems release. > > Does anyone have any ideas? > > > [dougmcbride@shiny /d/rubygems-1.3.4] sudo gem env You do not need sudo for this. > RubyGems Environment: > - RUBYGEMS VERSION: 1.3.4 > - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal- > darwin9.0] > - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 > - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/ > Versions/1.8/usr/bin/ruby > - EXECUTABLE DIRECTORY: /usr/bin > - RUBYGEMS PLATFORMS: > - ruby > - universal-darwin-9 > - GEM PATHS: > - /Library/Ruby/Gems/1.8 > - /Users/dougmcbride/.gem/ruby/1.8 > - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - :sources => ["http://gems.rubyforge.org/"] > - REMOTE SOURCES: > - http://gems.rubyforge.org/ Looks pretty good. You might get a slightly more recent ruby by updating Leopard, but that shouldn't matter very much. Saying "sudo gem update --system" *should* have been sufficient to update rubygems. > [dougmcbride@shiny /d/rubygems-1.3.4] sudo gem --debug install ruby- > debug ... > Exception `EOFError' at /System/Library/Frameworks/Ruby.framework/ > Versions/1.8/usr/lib/ruby/1.8/net/protocol.rb:133 - end of file > reached Just checking - (1) Have you installed Xcode? (2) Are you connected to the Internet? Sorry nothing else comes to mind right off the bat; I couldn't reproduce the problem (installing ruby-debug worked find for me). m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com