When I run
gem install <somegem>
command the gem utility tries to access my home directory. It contains some non-latin characters and installation fails because of that. For example:
E:\ruby\bin>gem install <somegem>
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - C:\Documents and Settings\<user>
If I switch to another user account with a username containing ASCII characters only gem works fine.
Does anybody know how to tell gem NOT to check my home directory?
UPDATE: I tried to set up GEM_HOME as suggested below but it didn’t help (still checks the user home directory)
Just change HOMEDRIVE and HOMEPATH before running gem, and restore after (if needed).
I’ve changed my gem.bat like this:
E:/Dev/Ruby/ is my Ruby path. It seems that HOMEPATH can be changed to anything else with ASCII only characters in path.