Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
strange error when running "ruby -version"
zuk_ini
10/13/2004 4:27:00 PM
I used the latest windows installer from
http://rubyinstaller.rub...
. I'm in windows XP. The error
looks like so:
C:\eng\other-sw\wtr\watir\unittests>ruby -version
ruby 1.8.2 (2004-07-29) [i386-mswin32]
-e:1: undefined local variable or method `rsion' for main:Object
(NameError)
Thanks.
2 Answers
ts
10/13/2004 4:33:00 PM
0
>>>>> "j" == +jeff <zuk_ini@yahoo.com> writes:
j> C:\eng\other-sw\wtr\watir\unittests>ruby -version
This is equivalent to
ruby -v -e 'rsion'
you want
ruby --version
Guy Decoux
Chad Fowler
10/13/2004 4:37:00 PM
0
On Thu, 14 Oct 2004 01:29:33 +0900, +jeff <zuk_ini@yahoo.com> wrote:
> I used the latest windows installer from
>
http://rubyinstaller.rub...
. I'm in windows XP. The error
> looks like so:
>
> C:\eng\other-sw\wtr\watir\unittests>ruby -version
> ruby 1.8.2 (2004-07-29) [i386-mswin32]
> -e:1: undefined local variable or method `rsion' for main:Object
> (NameError)
>
It should be: ruby -v (not ruby -version).
In your example, it sees "-v" and then "-e". The stuff after "-e"
gets executed, so it thinks you're trying to run a program with a
single method call to "rsion".
For an example, if you did: ruby -vegets
It would print the version and wait for you to hit enter on your keyboard.
Chad
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
strange error when running "ruby -version"
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password