Skip to content

Instantly share code, notes, and snippets.

/console_output Secret

Created January 10, 2014 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1ed80c96a47549aa75a5 to your computer and use it in GitHub Desktop.
Save anonymous/1ed80c96a47549aa75a5 to your computer and use it in GitHub Desktop.
Errno::EMFILE: Too many open files - socket(2) while running gem install
C:\Users\Suma.Bhat.RMED0058LT>gem install rails --debug -V
Exception `NameError' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_ma
nager.rb:177 - uninitialized constant Gem::Commands::InstallCommand
Exception `Errno::EMFILE' at C:/Ruby193/lib/ruby/1.9.1/net/http.rb:762 - Too man
y open files - socket(2)
Exception `Gem::RemoteFetcher::FetchError' at C:/Ruby193/lib/ruby/site_ruby/1.9.
1/rubygems/remote_fetcher.rb:246 - Errno::EMFILE: Too many open files - socket(2
) (http://rubygems.org/latest_specs.4.8.gz)
Error fetching remote data: Errno::EMFILE: Too many open files - soc
ket(2) (http://rubygems.org/latest_specs.4.8.gz)
Falling back to local-only install
Exception `Gem::GemNotFoundException' at C:/Ruby193/lib/ruby/site_ruby/1.9.1/rub
ygems/dependency_installer.rb:237 - Could not find a valid gem 'rails' (>= 0) lo
cally or in a repository
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
Exception `Errno::EMFILE' at C:/Ruby193/lib/ruby/1.9.1/net/http.rb:762 - Too man
y open files - socket(2)
Exception `Gem::RemoteFetcher::FetchError' at C:/Ruby193/lib/ruby/site_ruby/1.9.
1/rubygems/remote_fetcher.rb:246 - Errno::EMFILE: Too many open files - socket(2
) (http://rubygems.org/latest_specs.4.8.gz)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::EMFILE: Too many open files - socket(2) (http://rubygems.org/latest_s
pecs.4.8.gz)
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:246:in `r
escue in fetch_path'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:232:in `f
etch_path'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:269:in `loa
d_specs'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:231:in `blo
ck in list'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:227:in `eac
h'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:227:in `lis
t'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:189:in `sug
gest_gems_from_name'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:160:in `show_loo
kup_failure'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb
:132:in `rescue in block in execute'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb
:116:in `block in execute'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb
:115:in `each'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb
:115:in `execute'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `
process_args'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `
run'
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
C:/Ruby193/bin/gem:30:in `<main>'
C:\Users\Suma.Bhat.RMED0058LT>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment