Luis Lavena
12/25/2007 1:24:00 AM
On 24 dic, 16:30, Li Chen <chen_...@yahoo.com> wrote:
> Luis Lavena wrote:
> > On Dec 24, 3:16 pm, Li Chen <chen_...@yahoo.com> wrote:
>
> > Can you list the contents of c:\ruby\bin\ ?
>
> 12/24/2007 12:16 PM <DIR> .
> 12/24/2007 12:16 PM <DIR> ..
> 12/14/2007 09:51 AM 4,021 erb
> 12/14/2007 09:51 AM 174 erb.bat
> 12/14/2007 09:51 AM 25 fxri.bat
> 12/14/2007 09:51 AM 245 fxri.rbw
> 12/14/2007 09:51 AM 21,504 gdbm.dll
> 12/24/2007 12:16 PM 725 gem
> 12/24/2007 12:16 PM 162 gem.bat
> 12/21/2007 03:57 PM 27 gemhelp.bat
> 12/24/2007 12:16 PM 91 gemlock
The gem.bat file size is correct, latest One-Click Installer ships
with the same stub files that RubyGems 1.0.x uses.
Also, from your latest output, it seems RUBYOPT is set to
'rubygems' (since require it return false).
Can you print the PATH you have? Example:
C:\Documents and Settings\Usuario>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Ruby\bin
I don't know what could be affecting you, but please, replace the
gem.bat you have with this:
====
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.Using 9x command line
@"C:/Ruby/bin/ruby.exe" "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
ECHO.Using NT command line
"%~d0%~p0ruby.exe" "%~d0%~p0%~n0" %*
====
This is my Windows XP output:
C:\Ruby\bin>gem -v
Using NT command line
1.0.1
C:\Documents and Settings\Usuario>gem -v
Using NT command line
1.0.1
Maybe Vista is using '9x' version of command line processing, becasue
the .bat file, but that seems odd, and couldn't reproduce locally, so
the more info you can provide, the better.
Waiting for your feedback,
Luis