Update IRB or is it right like this

Hello there,

I'm new to ruby en stubbeld on a problem i think.
I run both ruby1.8.7 and ruby 1.9 on my IMac but when i type the
$LOAD_PATH or $:
when in Ruby1.9 this is the result:

$:

=> ["/Library/Ruby/Site/1.8",
"/Library/Ruby/Site/1.8/powerpc-darwin10.0",
"/Library/Ruby/Site/1.8/universal-darwin10.0", "/Library/Ruby/Site",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8/universal-darwin10.0",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin10.0",
"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0",
"."]

what i understand is that it search in the ruby1.8.7 lib
So the question:
is this normal or does it has to search in the Ruby1.9 lib?
and can i update irb or something?

thanks

···

--
Posted via http://www.ruby-forum.com/\.

Younes Baghor wrote:

Hello there,

what i understand is that it search in the ruby1.8.7 lib
So the question:
is this normal or does it has to search in the Ruby1.9 lib?
and can i update irb or something?

when i put it $: in a file and run with ruby1.9 it works correct
How can i change irb to point to Ruby1.9?

···

--
Posted via http://www.ruby-forum.com/\.

If you are using "ruby1.9" to run Ruby 1.9, then you might try "irb1.9"

-Justin

···

On 09/14/2010 04:28 AM, Younes Baghor wrote:

Younes Baghor wrote:
   

Hello there,

what i understand is that it search in the ruby1.8.7 lib
So the question:
is this normal or does it has to search in the Ruby1.9 lib?
and can i update irb or something?

when i put it $: in a file and run with ruby1.9 it works correct
How can i change irb to point to Ruby1.9?

And inside irb, type

RUBY_VERSION
RUBY_DESCRIPTION

to see what ruby you're actually running.

···

--
Posted via http://www.ruby-forum.com/.

Justin Collins wrote:

···

On 09/14/2010 04:28 AM, Younes Baghor wrote:

when i put it $: in a file and run with ruby1.9 it works correct
How can i change irb to point to Ruby1.9?
   
If you are using "ruby1.9" to run Ruby 1.9, then you might try "irb1.9"

-Justin

Thanks this works
--
Posted via http://www.ruby-forum.com/\.

Brian Candler wrote:

And inside irb, type

RUBY_VERSION
RUBY_DESCRIPTION

to see what ruby you're actually running.

It works on both Ruby versions
thanks allot

···

--
Posted via http://www.ruby-forum.com/\.