tag:help.rubygems.org,2010-01-19:/discussions/problems/545-cannot-install-rubygemsRubyGems.org: Discussion 2017-04-12T19:11:20Ztag:help.rubygems.org,2010-01-19:Comment/64212812011-04-04T12:00:18Z2011-04-04T12:00:18ZCannot install RubyGems<div><p>Also,<br>
I'd like to add the following additional debug information. Perhaps
it can help in solving the problem I'm encountering:</p>
<pre>
<code>C:\Windows\system32>gem install ferret --debug
Exception `NameError' at C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:163 - uninitialized constant Gem::Commands::InstallCommand
Exception `Errno::ENOENT' at C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54 - No such file or directory - H:/
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - H:/
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54:in `stat'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:54:in `initialize'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `new'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:43:in `fetcher'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:108:in `find_gems_with_sources'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:228:in `find_spec_by_name_and_version'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:260:in `install'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:120:in `block in execute'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `each'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:115:in `execute'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:133:in `process_args'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:103:in `run'
C:/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:64:in `run'
C:/Ruby/bin/gem:21:in `<main>'</code>
</pre></div>De Herdt Arnetag:help.rubygems.org,2010-01-19:Comment/64212812011-04-04T12:06:49Z2011-04-04T12:06:49ZCannot install RubyGems<div><p>Nevermind, seems I solved it.<br>
I was running the shell with elevated permissions as
Administrator.<br>
When I ran it normally, it worked fine.</p>
<p>Can be closed.</p></div>De Herdt Arnetag:help.rubygems.org,2010-01-19:Comment/64212812011-04-04T18:02:09Z2011-04-04T18:02:09ZCannot install RubyGems<div><p>Hello, this is caused by one environment variable (most of the
time <code>HOME</code>, <code>USERPROFILE</code> or
<code>HOMEDRIVE</code> and <code>HOMEPATH</code>)</p>
<p>Please verify that none of these variables point to
<code>H:</code>, you can do that using <code>SET var</code>
(replacing var with one of the variables I mentioned before)</p>
<p>Most of the times this happens with mapped network drives or
user-configured home directories.</p>
<p>Closing this out since seems you figure it out already.</p></div>Luis Lavena