How to use rvm (ruby version manager) with root account?

Posted by Jade on Stack Overflow See other posts from Stack Overflow or by Jade
Published on 2010-04-11T18:49:23Z Indexed on 2010/04/11 18:53 UTC
Read the original article Hit count: 191

Filed under:
|

The whole point of rvm is to be able to install multiple rubies and access them from a user account. What do you do when you need to access any of those rubies from root? Or use gems installed in one of those rvms?

Is there an elegant (or even hackish) way to use these I haven't considered?

My guess is that I should just add it to my PATH, but I'm curious if anyone has come up with a better idea. I'd rather not install rvm just for the root account and duplicate everything.

© Stack Overflow or respective owner

Related posts about rvm

Related posts about root