From: Luis Lavena Date: 2007-12-31T10:50:03+09:00 Subject: Re: install rubygems on Vista On 30 dic, 19:44, Li Chen wrote: > Hi Luis, > > Sorry for the late response. I am off line for several days. > > I update the gem.bat with the one you give me. I don't think it works > either. > > And here is the screen output, together with the ECHO %path%. > > Once again thank you very much, > > Li > > ############ > C:\Users\Alex>gem -v > :1: no such file to load -- rubygems (LoadError) > > C:\>cd ruby\bin > > C:\ruby\bin>gem -v > Using NT command line > 1.0.1 > > C:\ruby\bin>c: > > C:\ruby\bin>cd\ > > C:\>gem -v > :1: no such file to load -- rubygems (LoadError) > > C:\>cd Users\alex > > C:\Users\Alex>ECHO %path% > c:\jruby-1.0.1\bin;C:\Program > Files\Java\jdk1.6.0_02\bin;C:\Windows\system32;C:\Windows;C:\Windows\S > ystem32\Wbem;C:\Program Files\Common Files\Roxio > Shared\DLLShared\;C:\Program Files\Common Files\Rox > io Shared\DLLShared\;C:\Program Files\Common Files\Roxio > Shared\9.0\DLLShared\;C:\Windows\Microsoft. > NET\Framework\v2.0.50727;c:\ruby\bin; > C:\ruby\lib\ruby\gems\1.8;C:\Tcl\bin;c:\jruby-1.0.1\bin;C:\Pro > gram > Files\Java\jdk1.6.0_02\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program > F > iles\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common > Files\Roxio Shared\DLLShared\;C:\P > rogram Files\Common Files\Roxio > Shared\9.0\DLLShared\;C:\Windows\Microsoft.NET\Framework\v2.0.50727; > c:\ruby\bin; C:\ruby\lib\ruby\gems\1.8;;c:\ruby\bin; > Please, look at the first item in your path.... jRuby! :-P when calling gem, you're actually calling jruby gem. That's why you don't get "Using NT command line" echo when calling it outside c:\ruby\bin Please, remove jruby from the path and try again. That one of the problems of having multiple interpreters with the same executables hanging in the path. Hey, lucky you didn't add ruby 1.9 too! :-P HTH, Luis PS: btw, there are many attempts to add jruby and ruby\bin too, so please cleanup your path variables -- removing duplicates -- to avoid future problems again.