From: Luis Lavena Date: 2011-01-26T02:02:00+09:00 Subject: Re: Problem with GEM configuration On Jan 25, 1:17 pm, Michael Mcandrews wrote: > Hi, > > I've ben running Ruby and Gem for a few years without any problems until > now, when this wierd thing poped up.  It's been a while since I ran GEM > so I don't know what may have happened to produce the problem.  However, > now, with most GEM commands I get the following response ... > > ERROR:  While executing gem ... (Errno::ENOENT) >     No such file or directory - %UserProfile > > I'm running ... >   Windows XP >   Ruby v1.8.6 >   Gem v 1.3.6 > > I do have an environment variable "UserProfile" and equates to a valid > directory and it contains a ".gem" directory.  What does GEM want > "%UserProfile" to be?  How can I fix this?  About the only GEM command > that works is .. >   gem list --local > can you try "gem env" ? perhaps you also have a GEM_HOME or GEM_PATH variable setup, so try this: set GEM And tell us the results. There could be a missing % in one of the environment variables, specially HOME variable (which is used by Ruby and RubyGems) -- Luis Lavena