Error using 'gem install' how do you reset path?

quick question

I believe that I lost my path for using the command gem install. @hen I
attempt to install a gem, I get the following error while using ‘gem
install json’ (and other gems).

Error (Errno:ENOENT) No such file or directory. C:\Documents and
Settings\LocalUser\LocalSettings\Home

Do you know how to fix this? Thanks in advance

-MMC

On Sep 10, 5:06 pm, Mmcolli00 Mom [email protected] wrote:

-MMC

Would you mind pasting the whole error when you run “gem install json
–debug -V” ?

Thank you,

Thanks, the message is pasted below. Do you know what command to use to
set the gem path?

whole error:

ERROR: While executing gem…(Errno:ENOENT) No such file or directory -
C:\Documents and Settings\LocalUser\LocalSettings\Home

Try echoing %GEM_HOME% to see if it’s set, and if needed set that env
variable to the correct location. Hope that helps.

On Sep 10, 2009, at 12:31 PM, Mmcolli00 Mom [email protected]

On Thu, Sep 10, 2009 at 1:24 PM, Mmcolli00 Mom [email protected]
wrote:

Dylan McClung wrote:

Try echoing %GEM_HOME% to see if it’s set, and if needed set that env

Hi Dylan, sorry for not knowing, but how to do I echo this value?

At the command line:

C:>echo %gem_home%
“C:\Documents and Settings\gthiesfeld.gem\ruby\1.9.1”

if the variable isn’t set, it will actually return %gem_home%

C:>echo %gem_home%
%gem_home%

or your can use the set command:

C:>set gem
GEM_HOME=“C:\Documents and Settings\gthiesfeld.gem\ruby\1.9.1”

Dylan McClung wrote:

Try echoing %GEM_HOME% to see if it’s set, and if needed set that env

Hi Dylan, sorry for not knowing, but how to do I echo this value?

Thanks Gordon!