On Jun 7, 2008, at 14:49 PM, David Masover wrote:
> On Saturday 07 June 2008 16:35:49 Leslie Viljoen wrote:
>> Hi!
>>
>> I'd like to try Ruby1.9 on some of my projects but I'm not sure how  
>> it
>> gels with the existing
>> Ruby install.
>
> Ubuntu installed it as a ruby1.9 command, and gem1.9, etc. In  
> theory, it
> should work.
>
> Unfortunately, it does occasionally cause stupidity -- for example,  
> I'll have
> rake installed for ruby1.9, and a rake task will end up calling  
> ruby1.9 by
> name, as part of trying to install a ruby1.8 gem (doesn't work,  
> needless to
> say).
>
> I suspect that there's a way to get them to cooperate short of  
> virtualization,
> though.

Add --format-executable to the install command line.  (You can set  
this in ~/.gemrc too.)