# Ruby Version 1.8.7 on Ubuntu

**URL:** <https://www.ruby-forum.com/t/ruby-version-1-8-7-on-ubuntu/207534>\
**Category:** Ruby\
**Created:** [May 27, 2011, 3:25pm UTC](https://www.ruby-forum.com/t/ruby-version-1-8-7-on-ubuntu/207534 "2011-05-27T15:25:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 27, 2011, 3:25pm UTC](https://www.ruby-forum.com/t/ruby-version-1-8-7-on-ubuntu/207534/1 "2011-05-27T15:25:38Z")

</div>

I installed ruby from Ubuntu a week ago but it seems that I have version  
1.8:

$ruby --version  
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]

The book ‘Ruby P.ming Language’ I am studying (very good 🙂 is from  
2008 and talks about 1.9 (versus 1.8). Do I need to re-install?

---

<div class="post-metadata">

**Author:** ![datura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@datura](https://www.ruby-forum.com/u/datura)\
**Post date:** [May 27, 2011, 3:45pm UTC](https://www.ruby-forum.com/t/ruby-version-1-8-7-on-ubuntu/207534/2 "2011-05-27T15:45:39Z")

</div>

On Fri, May 27, 2011 at 3:25 PM, Agent M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I installed ruby from Ubuntu a week ago but it seems that I have version  
> 1.8:
> 
> $ruby --version  
> ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
> 
> The book ‘Ruby P.ming Language’ I am studying (very good 🙂 is from  
> 2008 and talks about 1.9 (versus 1.8). Do I need to re-install?

> **[LMGTFY](https://lmgtfy.com/?q=ubuntu+ruby+1.9)**
>
> Let Me Google That For You (LMGTFY): for all those people who find it more convenient to bother you with their question rather than search it for themselves.

In case this gets lost in the plethora of links for this issue (and  
you don’t use RVM): Substitute the book’s use of ruby and irb with  
ruby19 / irb19.

–  
Phillip G.

A method of solution is perfect if we can forsee from the start,  
and even prove, that following that method we shall attain our aim.  
– Leibnitz

---

<div class="post-metadata">

**Author:** ![datura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@datura](https://www.ruby-forum.com/u/datura)\
**Post date:** [May 28, 2011, 1:05pm UTC](https://www.ruby-forum.com/t/ruby-version-1-8-7-on-ubuntu/207534/3 "2011-05-28T13:05:32Z")

</div>

Thank you! I did a successfull

$ sudo apt-get install ruby1.9.1-full

from the command line and changed the  
symbolic links for ruby and irb in the  
/usr/bin/ directory to point to the proper  
files

$ ruby -version  
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
