From: Le Couey Date: 2011-06-05T08:57:17+09:00 Subject: Re: rubygems-update 1.8.5 Released On 6/4/2011 4:40 PM, Luis Lavena wrote: > The problem is not HOMEPATH, or \ or / in the variable. > > Please do "gem env" and provide that information. > > Ruby uses a combination of HOMEDRIVE and HOMEPATH variables when > "HOME" variable is not defined, and then it will fall back to > USERPROFILE > > So, please provide details about HOME, HOMEDRIVE and HOMEPATH values, > also ensure the variables ARE assigned or try doing this: > > SET HOME=%HOMEDRIVE%%HOMEPATH% > > And see what this produces: > > ruby -ve "puts File.expand_path('~')" > > -- > Luis Lavena > 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%' C:\Documents and Settings\Lawrence>set USERPROFILE USERPROFILE=C:\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:/%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 C:\Documents and Settings\Lawrence> --- 8< -------------------------- 8< --------------------------- 8< ---------------------- C:\Documents and Settings\Lawrence>gem update --system Updating rubygems-update Fetching: rubygems-update-1.8.5.gem (100%) Temporarily enhancing PATH to include DevKit... Successfully installed rubygems-update-1.8.5 Installing RubyGems 1.8.5 RubyGems 1.8.5 installed unable to convert U+0160 from UTF-8 to IBM437 for History.txt, skipping unable to convert U+0160 from UTF-8 to IBM437 for History.txt, skipping n++=== 1.8.5 / 2011-05-31 * 2 minor enhancement: * The -u option to 'update local source cache' is official deprecated. * Remove has_rdoc deprecations from Specification. * 2 bug fixes: * Handle bad specs more gracefully. * Reset any Gem paths changed in the installer. ------------------------------------------------------------------------------ RubyGems installed the following executables: C:/lan/Ruby192/bin/gem RubyGems system software updated C:\Documents and Settings\Lawrence>time The current time is: 17:15:20.62 Enter the new time: C:\Documents and Settings\Lawrence>date The current date is: Sat 06/04/2011 Enter the new date: (mm-dd-yy) C:\Documents and Settings\Lawrence> --- 8< -------------------------- 8< --------------------------- 8< ---------------------- --- 8< -------------------------- 8< --------------------------- 8< ----------------------