strange error when running "ruby -version"

J

+jeff

I used the latest windows installer from
http://rubyinstaller.rubyforge.org. 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.
 
T

ts

j> C:\eng\other-sw\wtr\watir\unittests>ruby -version

This is equivalent to

ruby -v -e 'rsion'

you want

ruby --version


Guy Decoux
 
C

Chad Fowler

I used the latest windows installer from
http://rubyinstaller.rubyforge.org. 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top