Jesús Gabriel y Galán
6/26/2008 5:06:00 PM
On Thu, Jun 26, 2008 at 6:58 PM, Steve Meyer <sjmeyer@us.ibm.com> wrote:
> I just installed ruby 1.8.6, on RHEL 5.1
> my configure command was:
> ./configure --prefix=/usr/local --enable-pthread --enable-shared
> --with-readline-dir=/usr
>
> When I run the version command, after the version info is displayed the
> error:
> -e:1: undefined local varriable or method 'rsion' for main:Object
> (NameError) appears.
The version command for ruby is:
jesus@jesus-laptop:~$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
-e is used to run ruby code. Like:
jesus@jesus-laptop:~$ ruby -e"puts 'hi'"
hi
It will try to evaluate what is passed after the -e. So you do:
jesus@jesus-laptop:~$ ruby -version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
-e:1: undefined local variable or method `rsion' for main:Object (NameError)
it will do the -v part and then when trying to do the -e part it will
try to evaluate rsion, which obviously results in an error.
Jesus.