Ruby 1.9.1

Our company is running Ruby 1.8.6 patch 111. Is it possible to install Ruby 1.9.1 on the same machines to test the same application? If so what is the recommended strategy for having side-by-side installations and how would you specify which version of Ruby and Rails that gets started up?

Any insight is greatly appreciated. Thanks, Calvin.

RubyNewbie wrote:

Our company is running Ruby 1.8.6 patch 111. Is it possible to install Ruby 1.9.1 on the same machines to test the same application? If so what is the recommended strategy for having side-by-side installations and how would you specify which version of Ruby and Rails that gets started up?

On Ubuntu, ruby1.9 comes as a package, with gem1.9 and rake1.9. I have not used them on the full stack, though.

There are those who use one of the ZenSpider's gems, IIRC, to change between ruby distros on the fly. That's how maintainers keep a long list of them and cross-test on them all.

Next question: Is Rails 1.9 ready yet?

Phlip wrote: [...]

Next question: Is Rails 1.9 ready yet?

You mean Rails 2.3 on Ruby 1.9? That is said to work, but not all plugins and gems will (never tried it myself). See http://isitruby19.com .

Best,

I use stow to have Ruby 1.8.6, 1.8.7, and 1.9 all on the same machine. Only 1 can be used at any one time, and you have to install each gem (including rails) separately for each version of Ruby.

Here is a tutorial: http://www.mjwall.com/2008/08/multiple-versions-of-ruby-with-stow/

HTH Paul

RubyNewbie wrote: