# How can i install ruby in ubuntu

**URL:** <https://rubytalk.org/t/how-can-i-install-ruby-in-ubuntu/31057>\
**Category:** ruby-talk\
**Created:** [16 September 2006 15:21 UTC](https://rubytalk.org/t/how-can-i-install-ruby-in-ubuntu/31057 "2006-09-16T15:21:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11158](https://avatars.discourse-cdn.com/v4/letter/1/d9b06d/32.png) [@11158](https://rubytalk.org/u/11158)\
**Post date:** [16 September 2006 15:21 UTC](https://rubytalk.org/t/how-can-i-install-ruby-in-ubuntu/31057/1 "2006-09-16T15:21:16Z")

</div>

hi all  
&nbsp;&nbsp;&nbsp;i use "sudo apt-get install ruby1.8 irb1.8 rdoc1.8" install ruby in  
ubuntu ,but after success install , i input " ruby -v " , prompt "  
bash:ruby command not found", why ??  
&nbsp;&nbsp;need other config??

---

<div class="post-metadata">

**Author:** ![ts1](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@ts1](https://rubytalk.org/u/ts1)\
**Post date:** [16 September 2006 15:33 UTC](https://rubytalk.org/t/how-can-i-install-ruby-in-ubuntu/31057/2 "2006-09-16T15:33:13Z")

</div>

> &nbsp;&nbsp;&nbsp;i use "sudo apt-get install ruby1.8 irb1.8 rdoc1.8" install ruby in  
> ubuntu ,but after success install , i input " ruby -v " , prompt "  
> bash:ruby command not found", why ??

Well do

&nbsp;&nbsp;sudo apt-get install ruby irb rdoc ri

otherwise the symbolic link /usr/bin/ruby is not created and you must call  
ruby1.8

Guy Decoux

---

<div class="post-metadata">

**Author:** ![11158](https://avatars.discourse-cdn.com/v4/letter/1/d9b06d/32.png) [@11158](https://rubytalk.org/u/11158)\
**Post date:** [16 September 2006 16:06 UTC](https://rubytalk.org/t/how-can-i-install-ruby-in-ubuntu/31057/3 "2006-09-16T16:06:00Z")

</div>

thanks ts  
ts wrote:

> **···**
>
> > \> i use "sudo apt-get install ruby1.8 irb1.8 rdoc1.8" install ruby in  
> > \> ubuntu ,but after success install , i input " ruby -v " , prompt "  
> > \> bash:ruby command not found", why ??
> > 
> > Well do
> > 
> > &nbsp;&nbsp;sudo apt-get install ruby irb rdoc ri
> > 
> > otherwise the symbolic link /usr/bin/ruby is not created and you must call  
> > ruby1.8
> > 
> > Guy Decoux
