From: Luis Lavena Date: 2011-06-05T10:56:34+09:00 Subject: Re: rubygems-update 1.8.5 Released On Jun 4, 7:57 pm, Le Couey wrote: > > Luis, > > Thanks! > > Everything appears to have worked (see following): > > C:\Documents and Settings\Lawrence>gem env > RubyGems Environment: >   - RUBYGEMS VERSION: 1.8.4 >   - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-mingw32] >   - INSTALLATION DIRECTORY: C:/lan/Ruby192/lib/ruby/gems/1.9.1 >   - RUBY EXECUTABLE: C:/lan/Ruby192/bin/ruby.exe >   - EXECUTABLE DIRECTORY: C:/lan/Ruby192/bin >   - RUBYGEMS PLATFORMS: >     - ruby >     - x86-mingw32 >   - GEM PATHS: >      - C:/lan/Ruby192/lib/ruby/gems/1.9.1 >   - GEM CONFIGURATION: >      - :update_sources => true >      - :verbose => true >      - :benchmark => false >      - :backtrace => false >      - :bulk_threshold => 1000 >   - REMOTE SOURCES: >      -http://rubygems.org/ > > --- 8< -------------------------- 8< --------------------------- 8< > ---------------------- > C:\Documents and Settings\Lawrence>set home > HOME=C:\%HOMEPATH% > HOMEDRIVE=C: > HOMEPATH=\Documents and Settings\Lawrence > > C:\Documents and Settings\Lawrence>echo '%HOME%' > 'C:\%HOMEPATH%' > > > --- 8< -------------------------- 8< --------------------------- 8< > ---------------------- > C:\Documents and Settings\Lawrence>set HOME=%HOMEDRIVE%%HOMEPATH% > > C:\Documents and Settings\Lawrence>SET HOME > HOME=C:\Documents and Settings\Lawrence > HOMEDRIVE=C: > HOMEPATH=\Documents and Settings\Lawrence > > C:\Documents and Settings\Lawrence>ruby -ve "puts File.expand_path('~')" > ruby 1.9.2p0 (2010-08-18) [i386-mingw32] > C:/Documents and Settings/Lawrence The problem is here, seems HOME is not properly evaluated... perhaps %HOMEPATH% was escaped from evaluation. You need to setup HOME properly, which I recommend you use SETX: http://ss64.com/nt/setx.html SETX HOME ^%HOMEDRIVE^%^%HOMEPATH^% The ^ around % will delay evaluation of the variable. For the setting changes to work, you need to open a new terminal. -- Luis Lavena