tag:help.rubygems.org,2010-01-19:/discussions/problems/15693-gems-home-drive-point-to-network-drive-not-my-localRubyGems.org: Discussion 2015-08-17T19:38:56Ztag:help.rubygems.org,2010-01-19:Comment/306086872013-12-17T15:57:12Z2013-12-17T15:57:13ZGems home drive point to network drive, not my local<div><p>Hello everyone,<br>
I have tricky situation where when I try to install a gem - it
tries to write on my H: drive, which is network drive and it is
extremely slow.<br>
I've met the very same description of the <a href=
"http://help.rubygems.org/discussions/problems/333-install-gems-on-windows-7">
problem here</a>, but unfortunately it doesn't solve my issue. From
the previous post I've <a href=
"https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting">read
this at github</a> and specially the part with the network drive.
I've dome everything described there and this time the message
after I' set the #SET HOME=%USERPROFILE%# things are changed and it
comes with error "_permission denied_" in my home directory
d:\users\username.gem.</p>
<p>Basically what I have is:<br>
puts File.expand_path '~' => H: puts Gem.user_home => H:</p>
<pre>
<code>- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x64-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby200-x64/lib/ruby/gems/2.0.0
- RUBY EXECUTABLE: C:/Ruby200-x64/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby200-x64/bin
- RUBYGEMS PLATFORMS:
- ruby
- x64-mingw32
- GEM PATHS:
- C:/Ruby200-x64/lib/ruby/gems/2.0.0
- H:/.gem/ruby/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/</code>
</pre>
<p>I want my homedrive and path to point to D:</p>
<p>how this can be done?</p>
<p>I sent a lot of time of reading and trying some workarounds, but
without any success.<br>
I'm fighting with this for two days and will be really thankful if
anyone here can help me.</p></div>vladotag:help.rubygems.org,2010-01-19:Comment/306086872013-12-17T17:20:05Z2013-12-17T17:20:05ZGems home drive point to network drive, not my local<div><p>Hello vlado,</p>
<p>If you look at the top: INSTALLATION DIRECTORY indicated where
gems will be<br>
installed, which in your case, will be installed in C: drive.</p>
<p>If for some reason you can't install there, you can setup
GEM_HOME<br>
environment variable and indicate where you want the gems be
installed.</p>
<p>By default, RubyGems will look for that variable and if not,
will default<br>
to the combination of HOMEDRIVE+HOMEPATH environment variables,
which in<br>
your case seems to point to your network share.</p>
<p>This might be due a misconfiguration of your network
administrator, but you<br>
can override that by setting the variable I mentioned above.</p>
<p>Please note that you will have to add to the PATH the "bin" part
where you<br>
set GEM_HOME to. Eg.:</p>
<p>C:>mkdir D:\mygems<br>
C:>SET GEM_HOME=D:\mygems<br>
C:>SET PATH=%PATH%;C:\mygems\bin</p>
<p>Then, check the output of "gem env" and see that now
INSTALLATION DIRECTORY<br>
points to this location.</p>
<p>Please note that this will affect any gem that was installed
before, as<br>
GEM_HOME contains the new place to look for gems.</p>
<p>You will need to use variables like GEM_PATH to be able to load
gems<br>
previously installed.</p>
<p>Hope that helps.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/306086872013-12-18T12:39:38Z2013-12-18T12:39:38ZGems home drive point to network drive, not my local<div><p>I have permission denied message, when I changed my home
folder.<br>
for Example I'm trying this:</p>
<pre>
<code>D:\vagrant\magentobox\vagrant>gem install bourbon
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - D:/Users/vvarbanov/.gem/specs/rubygems.org%443
D:\vagrant\magentobox\vagrant></code>
</pre></div>vladotag:help.rubygems.org,2010-01-19:Comment/306086872014-04-16T15:56:36Z2014-04-16T15:56:36ZGems home drive point to network drive, not my local<div><p>Did this ever get resolved? Also, FWIW...StackOverflow might be
a better way to seek help for this kind of stuff.</p></div>Nick Quaranto