Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

688 views
Skip to first unread message

Mmcolli00 Mom

unread,
Sep 10, 2009, 11:06:30 AM9/10/09
to
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
--
Posted via http://www.ruby-forum.com/.

Luis Lavena

unread,
Sep 10, 2009, 1:00:58 PM9/10/09
to
On Sep 10, 5:06 pm, Mmcolli00 Mom <mmc_coll...@yahoo.com> wrote:
> 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,
--
Luis Lavena

Mmcolli00 Mom

unread,
Sep 10, 2009, 1:31:44 PM9/10/09
to
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

Dylan McClung

unread,
Sep 10, 2009, 2:05:24 PM9/10/09
to
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 <mmc_c...@yahoo.com>
wrote:

Mmcolli00 Mom

unread,
Sep 10, 2009, 2:24:46 PM9/10/09
to
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?

Gordon Thiesfeld

unread,
Sep 10, 2009, 2:40:28 PM9/10/09
to
On Thu, Sep 10, 2009 at 1:24 PM, Mmcolli00 Mom <mmc_c...@yahoo.com> 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"

Mmcolli00 Mom

unread,
Sep 10, 2009, 3:14:11 PM9/10/09
to

Thanks Gordon!

0 new messages