[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Rails gem site seems borked.

Eric Hodel

4/15/2008 9:18:00 AM

On Apr 14, 2008, at 06:58 AM, Michael T. Richter wrote:
> $ gem install rails
> Bulk updating Gem source index for: http://gems.rubyon...
> Bulk updating Gem source index for: http://gems.ruby...
> Bulk updating Gem source index for: http://gems.rubyon...
> ERROR: While executing gem ... (Gem::RemoteSourceException)
> Error fetching remote gem cache: Errno::EPIPE: Broken pipe
> reading http://gems.rubyon...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?

The output of gem env will help.

7 Answers

Sonny Chee

4/18/2008 1:16:00 AM

0

Eric Hodel 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:
- http://gems.rub...

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

Sonny.
--
Posted via http://www.ruby-....

Sonny Chee

4/18/2008 1:19:00 AM

0

... incidentally, I get the same broken pipe error message regardless
what gem I am trying to install...
--
Posted via http://www.ruby-....

Eric Hodel

4/18/2008 8:57:00 PM

0

On Apr 17, 2008, at 18:18 PM, Sonny Chee wrote:

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

Please run with --debug.

Sonny Chee

5/7/2008 4:59:00 PM

0

Eric Hodel wrote:
> On Apr 17, 2008, at 18:18 PM, Sonny Chee 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.ruby...
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.ruby...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.ruby...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.ruby...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.ruby...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
http://gems.ruby...yaml
ERROR: While executing gem ... (Gem::RemoteSourceException)
Error fetching remote gem cache: Errno::EPIPE: Broken pipe reading
http://gems.ruby...yaml
/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
--
Posted via http://www.ruby-....

Sonny Chee

5/9/2008 5:44:00 AM

0

Okay... I finally fixed my problem by installing the Linux 64 bit
kernel.
--
Posted via http://www.ruby-....

Meir Gerenstadt

10/30/2008 12:12:00 PM

0

Sonny Chee 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.
--
Posted via http://www.ruby-....

Sonny Chee

10/30/2008 3:57:00 PM

0

Meir Gerenstadt wrote:
> Sonny Chee 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.)
:")
--
Posted via http://www.ruby-....