From: Luis Lavena Date: 2009-06-03T09:40:11+09:00 Subject: Re: Rubygems On Jun 2, 7:06 pm, Eric Hodel wrote: > On Jun 2, 2009, at 06:03, J. D. wrote: > > > I have a curious question... > > > My normal install is C:\Ruby and C:\Ruby\bin is located in my windows > > path. > > > If I do ruby -v (correct version shows) > > If I do gem -v (correct version shows) > > If I do gem list (correct list shows) > > > If I rename that folder to C:\Ruby.backup (to store as a backup   > > folder) > > Do not do this, it breaks ruby. > > Ruby software (including RubyGems) use rbconfig.rb to figure out where   > ruby lives so it can do things like call back into ruby correctly,   > find other software, etc. > Hello Eric. Actually, Ruby on Windows is more dynamic and accepts relocation. That's how I've managed to build the exact same version of Ruby in a sandboxed directory and properly relocate it during installation to C: \Ruby. This is done with a trick to rbconfig that removes the hardcoded PATH. http://github.com/oneclick/rubyinstaller/blob/master/recipes/interpreter/ruby18.rake#L115-118 -- Luis Lavena