Hello,
When reporting issues related to RubyGems please provide the complete
output of "gem env" command.
Also, why are you invoking .\gem, is not Ruby in your PATH?. Roger
Pack reported issues about that in the past associated with stub
scripts (gem.bat)
Please add to your PATH and try again.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Well, you can install RubyInstaller 1.9.2 along with 1.9.1 into
separate directories and not having them in the PATH. You can also use
Pik to switch versions.
> And, I could not find C: in the bat files.
>
>
> F:\Ruby192\bin>path = F:\Ruby192\bin;%path%
>
> F:\Ruby192\bin>gem install ap
> ERROR: While executing gem ... (Errno::ENOENT)
> No such file or directory - C:/
>
> It looks like this C: is hardcoded somewhere ... I have many working
> rubies (1.8.6, 1.8.7, 1.9.1 + jruby), none has this error. And I as
> wrote in my initial post, my machine has no C: disk.
>
can you run gem install ap --debug -V ?
Dunno what is invoking C:/ as hardcoded, but Ruby 1.9.2 for sure is
not, at least no reference by gem env which could lead to that.
The issue seems that your system lacks either HOME, HOMEDRIVE +
HOMEPATH or USERPROFILE folders needed by RubyGems.
If you do this in a terminal:
ruby -ve "puts File.expand_path('~')"
What is your output?
Ruby 1.9.2 should handle that properly, and if not, then we need to
take a look to what is the content (set) of the above mentioned
variables.
Please post that and if we see is a problem, we will report back to Ruby-Core.
Thank you.
That might be the problem. How you setup HOME without the HOMEDRIVE?
Normally I setup HOME as:
SET HOME=%HOMEDRIVE%%HOMEPATH%
That is what expects.
Because you don't specified the drive letter, it fails and that is why
RubyGems defaults to C:/
>>
>> ruby -ve "puts File.expand_path('~')"
>>
>> What is your output?
>
> F:\Ruby192\bin>.\ruby -ve "puts File.expand_path('~')"
> ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
> -e:1:in `expand_path': non-absolute home (ArgumentError)
> from -e:1:in `<main>'
>
See above, removing HOME (set HOME=) will let it resolve properly.