tags:

views:

77

answers:

3
apt-get install ruby

Installs ruby 1.8.7

When I install ruby 1.9.2 from sources via ./configure make install, ruby is not installed (ruby -v gives nothing).

So how can I install ruby 1.9.2 on Ubuntu?

A: 

You can install ruby 1.9.1 with

sudo apt-get install ruby1.9.1

ruby 1.9.2 is not available for lucid (but I have not checked backports).

enzotib
I need 1.9.2 because Rails doesn't work with 1.9.1
Alex
I see package rails, that depends on ruby1.8. I am missing something?
enzotib
Yes, 1.8 works, but 1.9.x is a lot faster. That's why I want to use it.
Alex
+1  A: 
  • on 10.10 "Maverick Meerkat": apt-get install ruby1.9.1
  • on 10.04 "Lucid Lynx": Ruby 1.9.2 was only released a couple of weeks ago, it didn't exist when Lucid was frozen.
Jörg W Mittag
will apt-get install ruby1.9.1 install ruby 1.9.2? 1.9.1 doesn't work with Rails
Alex
@Alex: Yes, on Ubuntu 10.10 Maverick Meerkat (and current Debian, too), the version of the `ruby1.9.1` package is 1.9.2, which you can easily check by looking at `apt-cache show ruby1.9.1` or http://Packages.UbuntuLinux.Org/ruby1.9.1 or http://Packages.Debian.Org/ruby1.9.1
Jörg W Mittag
Thanks, I'll have to download new ubuntu and try that.
Alex
Sheesh, good to know that rvm is still the only sane option, then.
Lars Haugseth
+3  A: 

I use rvm Ruby Version Manager on my ubuntu-10.04.1-desktop. With ruby-1.9.2 , ruby 1.8.7 no problem.

germanlinux
rvm is the way to go: http://rvm.beginrescueend.com/
Lars Haugseth