# Update IRB or is it right like this

**URL:** <https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955>\
**Category:** Ruby\
**Created:** [September 14, 2010, 10:13am UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955 "2010-09-14T10:13:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 10:13am UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/1 "2010-09-14T10:13:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/2 "2010-09-14T13:28:31Z")

</div>

Younes B. 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?

---

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/3 "2010-09-14T13:35:20Z")

</div>

On 09/14/2010 04:28 AM, Younes B. 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

---

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/4 "2010-09-14T14:42:51Z")

</div>

And inside irb, type

RUBY\_VERSION  
RUBY\_DESCRIPTION

to see what ruby you’re actually running.

---

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/5 "2010-09-14T14:57:55Z")

</div>

Justin C. wrote:

> On 09/14/2010 04:28 AM, Younes B. 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

---

<div class="post-metadata">

**Author:** ![webwizart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@webwizart](https://www.ruby-forum.com/u/webwizart)\
**Post date:** [September 14, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/update-irb-or-is-it-right-like-this/194955/6 "2010-09-14T14:58:58Z")

</div>

Brian C. 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
