tags:

views:

472

answers:

2

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.

+4  A: 

I found the solution:

rvmsudo does the trick.

See http://rvm.beginrescueend.com/integration/passenger/ for an example.

Jade
+1  A: 

This may help: http://rvm.beginrescueend.com/deployment/system-wide/

Matt Scilipoti
Thanks, that's very good to know!
Jade