[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

problem w/ ruby install on windows -- or not?

Jeff Barrett

10/20/2004 4:27:00 PM

I've tried using the windows installer from Ruby-mswin32 and the one from RubyInstaller. I've also tried both 1.8.1 and 1.8.2. Both of them give me an error like so when asking ruby for it's version:

C:\>ruby -version
ruby 1.8.1 (2003-12-25) [i386-mswin32]
-e:1: undefined local variable or method `rsion' for main:Object (NameError)

Is this a problem? There are other problems I'm trying to figure out but first I want to make sure my ruby install is good.

Thanks.



2 Answers

Wayne Chin

10/20/2004 5:29:00 PM

0

Jeff Barrett wrote:
> I've tried using the windows installer from Ruby-mswin32 and the one
from RubyInstaller. I've also tried both 1.8.1 and 1.8.2. Both of
them give me an error like so when asking ruby for it's version:
>
> C:\>ruby -version
> ruby 1.8.1 (2003-12-25) [i386-mswin32]
> -e:1: undefined local variable or method `rsion' for main:Object
(NameError)
>
> Is this a problem? There are other problems I'm trying to figure out
but first I want to make sure my ruby install is good.
>
> Thanks.

Try "ruby -v" or "ruby --version".

--Wayne

timsuth

10/26/2004 5:30:00 AM

0

In article <1098293326.044176.139170@z14g2000cwz.googlegroups.com>, WayneFChin@gmail.com wrote:
>Jeff Barrett wrote:
>> I've tried using the windows installer from Ruby-mswin32 and the one
>from RubyInstaller. I've also tried both 1.8.1 and 1.8.2. Both of
>them give me an error like so when asking ruby for it's version:
>>
>> C:\>ruby -version
>> ruby 1.8.1 (2003-12-25) [i386-mswin32]
>> -e:1: undefined local variable or method `rsion' for main:Object
>(NameError)
>>
>> Is this a problem? There are other problems I'm trying to figure out
>but first I want to make sure my ruby install is good.
>>
>> Thanks.
>
>Try "ruby -v" or "ruby --version".
>
>--Wayne

Btw, the reason that
ruby -version
failed is that it is the same as
ruby -v -ersion
i.e.
ruby -v -e rsion

This is why it prints the Ruby version and then tries to evaluate "rsion".

--
Tim Sutherland <timsuth@ihug.co.nz>
2004 SDKACM President
Software Developers' Klub - the University of Auckland ACM Student Chapter
http://www.s...