From: Luis Lavena Date: 2007-10-21T22:25:38+09:00 Subject: Re: RubyGems Beta 0.9.4.6 Eric Hodel wrote: > On Oct 20, 2007, at 11:55 , Sasa Ebach wrote: >>>> E:/Develop/ruby/bin/gem.bat:19: uninitialized constant >>>> Gem::GemRunner (NameError) >>>> >>>> on every command. I am using the very latest OCI. >>> You missed: >>>>> When filing a bug, `gem env` output will be helpful in >>>>> diagnosing the issue. >> >> Please read again, what I have written. I am sure you overlooked >> that exactly what you are suggesting does not work. > > I'm sorry, I meant to say that you can run `gem` instead of `gem.bat` > to get this information. I think it is `ruby c:\ruby\bin\gem env`. I see the problem Sasa is having: His .bat file are wrong. Ruby is reporting gem.bat error on line 19... and the new gem stubs don't have 19 lines, nor the ruby code injected. Sasa: please copy & paste the code Daniel provided and replace the current gem.bat with it. That will fix the error.

@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"C:/ruby/bin/ruby.exe" "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
"%~dp0ruby.exe" "%~dpn0" %*

HTH, Luis -- Posted via http://www.ruby-forum.com/.