Rails gem site seems borked

$ gem install rails
Bulk updating Gem source index for: http://gems.rubyonrails.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyonrails.org/
ERROR: While executing gem … (Gem::RemoteSourceException)
Error fetching remote gem cache: Errno::EPIPE: Broken pipe reading
http://gems.rubyonrails.org/yaml

Question 1: Why is it “bulk updating” gems.rubyonrails.org twice? (For
that matter, why is it doing this each and every time I use gem for
anything?)

Question 2: What’s the issue behind the broken pipe on an URL? Have I
screwed up something on my machine or is there some bizarre use of pipes
and URLs in effect here?

On Apr 14, 2008, at 06:58 AM, Michael T. Richter wrote:

for anything?)

Question 2: What’s the issue behind the broken pipe on an URL? Have
I screwed up something on my machine or is there some bizarre use of
pipes and URLs in effect here?

The output of gem env will help.

Eric H. wrote:

On Apr 14, 2008, at 06:58 AM, Michael T. Richter wrote:

for anything?)

Question 2: What’s the issue behind the broken pipe on an URL? Have
I screwed up something on my machine or is there some bizarre use of
pipes and URLs in effect here?

The output of gem env will help.

I’m having the same issue. Here is output of gem env:

RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.1
  • RUBY VERSION: 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby1.8
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

Curiously enough, this compares exactly with gem env from a laptop where
I was successful in executing gem install rails…

Sonny.

… incidentally, I get the same broken pipe error message regardless
what gem I am trying to install…

On Apr 17, 2008, at 18:18 PM, Sonny C. wrote:

… incidentally, I get the same broken pipe error message regardless
what gem I am trying to install…

Please run with --debug.

Okay… I finally fixed my problem by installing the Linux 64 bit
kernel.

Eric H. wrote:

On Apr 17, 2008, at 18:18 PM, Sonny C. wrote:

… incidentally, I get the same broken pipe error message regardless
what gem I am trying to install…

Please run with --debug.

Hey Eric,

This is the same command executed with --debug

ger.rb:133 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError’ at
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:523 - Could not find
RubyGem sources (> 0.0.1)

Exception Errno::ENOENT' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:206 - No such file or directory - /usr/local/lib/ruby/gems/1.8/latest_source_cache Bulk updating Gem source index for: http://gems.rubyforge.org/ Exception Errno::ECONNRESET’ at
/usr/local/lib/ruby/1.8/net/protocol.rb:133 - Connection reset by peer
Exception Gem::RemoteFetcher::FetchError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:113 - Errno::ECONNRESET: Connection reset by peer reading http://gems.rubyforge.org/Marshal.4.8.Z Exception Errno::EPIPE’ at /usr/local/lib/ruby/1.8/net/protocol.rb:175

  • Broken pipe
    Exception Gem::RemoteFetcher::FetchError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:113 - Errno::EPIPE: Broken pipe reading http://gems.rubyforge.org/Marshal.4.8 Exception Errno::EPIPE’ at /usr/local/lib/ruby/1.8/net/protocol.rb:175
  • Broken pipe
    Exception Gem::RemoteFetcher::FetchError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:113 - Errno::EPIPE: Broken pipe reading http://gems.rubyforge.org/yaml.Z Exception Errno::EPIPE’ at /usr/local/lib/ruby/1.8/net/protocol.rb:175
  • Broken pipe
    Exception Gem::RemoteFetcher::FetchError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:113 - Errno::EPIPE: Broken pipe reading http://gems.rubyforge.org/yaml Exception Gem::RemoteSourceException’ at
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:394 - Error
    fetching remote gem cache: Errno::EPIPE: Broken pipe reading
    RubyGems.org | your community gem host
    ERROR: While executing gem … (Gem::RemoteSourceException)
    Error fetching remote gem cache: Errno::EPIPE: Broken pipe reading
    RubyGems.org | your community gem host
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:394:in
    fetch_bulk_index' /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:332:in update’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb:42:in
    refresh' /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:249:in refresh’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:242:in
    each' /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:242:in refresh’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:41:in
    cache' /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:86:in search_with_source’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:77:in
    find_gems_with_sources' /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:154:in find_spec_by_name_and_version’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:173:in
    install' /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:73:in execute’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:70:in
    each' /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:70:in execute’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:in invoke' /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in process_args’
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:74:in
    run' /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in run’
    /usr/local/bin/gem:24

Meir Gerenstadt wrote:

Sonny C. wrote:

Okay… I finally fixed my problem by installing the Linux 64 bit
kernel.

Since I’m junior in Linux, can you please help me installing 64 bit
kernel? It can broke others application on this machine (I have too many
important application there)?

Thanks,
Meir.

I’m no Linux install guru, Meir. But Google, is your friend (and mine.)
:")

Sonny C. wrote:

Okay… I finally fixed my problem by installing the Linux 64 bit
kernel.

Since I’m junior in Linux, can you please help me installing 64 bit
kernel? It can broke others application on this machine (I have too many
important application there)?

Thanks,
Meir.