Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just installed ruby on rails on a Centos server with directadmin following http://blog.ilwilliams.net/installing-rails-3-with-apache-on-centos/

I'm now in a non privileged user account (without sudo) and am trying to create an application using rails new personal

However this does the following

     create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.gitkeep
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
         run  bundle install
Enter your password to install the bundled RubyGems to your system: 
Sorry, try again.
Enter your password to install the bundled RubyGems to your system: 
joe is not in the sudoers file.  This incident will be reported.

Is there a way to allow users to create apps and use ruby without having to be logged in as root or ever use sudo, I believe the problem is occuring as rails is trying to install the app to the servers gem folder rather than once for the user?

Any ideas much appreciated, thanks for your time.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, you should install RVM on their accounts.

Then use RVM to install rails and it gems using bundle.

share|improve this answer
    
What do I need to remove first before installing RVM as I already have both ruby and gems installed! –  Pez Cuckow Apr 20 '12 at 8:09
    
You should not need to remove anything, just install rvm and then use rvm to install ruby and rails. –  Eric Sites Apr 20 '12 at 15:08
    
But I already have both ruby, rails and passenger installed, wont there be collisions? –  Pez Cuckow Apr 22 '12 at 15:31
1  
No, that is what RVM is for, dealing with multiple versions on the same machine. –  Eric Sites Apr 23 '12 at 8:15

Your Answer

 
discard

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.