tag:help.rubygems.org,2010-01-19:/discussions/problems/15979-running-into-errnoemfile-too-many-open-files-socket2-while-installing-any-gemRubyGems.org: Discussion 2018-10-18T19:51:20Ztag:help.rubygems.org,2010-01-19:Comment/310456872014-01-10T12:07:11Z2014-01-10T12:07:11ZRunning into " Errno::EMFILE: Too many open files - socket(2)" while installing any gem<div><p>Hello,</p>
<p>Are you behind a proxy? have you set HTTP_PROXY environment
variable? seems<br>
you're not using it with install parameter like --http-proxy</p>
<p>The version of Rails, Ruby or what you're doing with your
application might<br>
not be as relevant as your computer environment.</p>
<p>Any antivirus software you have installed? Any network blocker
or limiter<br>
like Peerblock installed and/or running?</p>
<p>A few recommendations:</p>
<p>Update to latest version of RubyGems for that series of ruby,
please run:</p>
<p>gem update --system 1.8.29</p>
<p>Once the updated version is installed, please try gem
installation again.</p>
<p>Second recommendation: change the sources to use https instead
of http (e.g<br>
<a href="https://rubygems.org">https://rubygems.org</a>)</p>
<p>Next, please attempt to install a single gem again with --debug
-V options:</p>
<p>gem install rails --debug -V</p>
<p>Then place the entire output of that into a gist (<a href=
"https://gist.github.com/">https://gist.github.com/</a>)<br>
and link to it when you reply.</p>
<p>Cheers.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/310456872014-01-10T13:51:26Z2014-01-10T13:51:28ZRunning into " Errno::EMFILE: Too many open files - socket(2)" while installing any gem<div><p>Hi,</p>
<p>Thanks for the pointers.<br>
HTTP_PROXY environment variable is not set. There is no antivirun
installed other than Microsoft Security Essentials. There is no
network blocker/limiter installed or running.<br>
I had a sysadmin take a look it my computer and confirm the above.
I'm running a full scan to check if there's any malware. Will keep
you posted.</p>
<p>I'm unable to update ruby gems. Same error pops up.<br>
<a href=
"https://gist.github.com/anonymous/1376b19269965af5ea06">https://gist.github.com/anonymous/1376b19269965af5ea06</a><br>
<a href=
"https://gist.github.com/anonymous/1ed80c96a47549aa75a5">https://gist.github.com/anonymous/1ed80c96a47549aa75a5</a></p></div>SBhattag:help.rubygems.org,2010-01-19:Comment/310456872014-01-13T11:06:44Z2014-01-13T11:06:47ZRunning into " Errno::EMFILE: Too many open files - socket(2)" while installing any gem<div><p>It turns out my computer was infected. After the clean up, I'm
able to install gems.</p>
<p>Thanks for the tips!</p></div>SBhat