installing ruby 1.9.1 with ruby 1.8.6 on same Linux machine

Hi
    I would like to install ruby1.9.1 with rails 2.3.2. I am currently
using rails 2.2.2 and (also rails 2.3.2 is there in the system) with
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-linux] Could anybody please
suggest a way to do this? My linux distro is fedora

Thanks in advance
Sijo

Hi
I would like to install ruby1.9.1 with rails 2.3.2. I am currently
using rails 2.2.2 and (also rails 2.3.2 is there in the system) with
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-linux] Could anybody please
suggest a way to do this? My linux distro is fedora

I've got both installed on my machine. I built both from source and
when I installed ruby 1.9.1 i passed --sufix=19 to the configure
script (so ruby19 is ruby 1.9.1, gem19 is the ruby 1.9.1 gem
executable etc.). Your distro might have packages for them

Fred

Dear Sijo,

Please follow these steps:

1. Install ruby 1.9.1 (latest patch from ruby site) as you said to a new
directory using --prefix

2. then install rails using /path_to_new/ruby/bin/gem install rails
No need to specify a install path for 'rails' it will be install on
New_ruby_path/bin

3. /path_to_new/ruby/bin/rails -v .

*note I used ruby 1.9.1p129 (2009-05-12 revision 23412)

I did this way and this worked for me.

Happy coding!
Anoop

Hi
    Thanks It is working now
Sijo