Update IRB or is it right like this

Y

Younes Baghor

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
 
Y

Younes Baghor

Younes said:
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?
 
J

Justin Collins

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
 
B

Brian Candler

And inside irb, type

RUBY_VERSION
RUBY_DESCRIPTION

to see what ruby you're actually running.
 
Y

Younes Baghor

Brian said:
And inside irb, type

RUBY_VERSION
RUBY_DESCRIPTION

to see what ruby you're actually running.

It works on both Ruby versions
thanks allot
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top