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

M

Mmcolli00 Mom

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
 
L

Luis Lavena

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

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

Thank you,
 
M

Mmcolli00 Mom

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
 
D

Dylan McClung

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

Gordon Thiesfeld

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top