Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you set up a Linux server with Ruby on Rails on it, and you're not using RVM, is the best practice to sudo gem install [gem] or gem install [gem]. I'm using the second approach, and storing my gems in a user ~/.gems directory and just having Phusion Passenger + Apache look for gems in that directory under the user directory. Is this frowned upon or OK?

share|improve this question

I can't think of any reason not to do that, unless you want the same set of gems to be available to another user on the box (but then you can get into group ownership). Is there some reason you don't want to use rvm?

share|improve this answer
On the server I have no reason to use RVM since I only need to run one version of Ruby. In that case I find that using RVM makes things more complicated and less transparent. – dan Jun 6 '11 at 0:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.