How can i install ruby in ubuntu

hi all
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 ??
need other config??

“b” == =?utf-8?B?5a+M5Li96aW85bmy?= writes:

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

Well do

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

thanks ts