1

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.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
Pez Cuckow
  • 525
  • 3
  • 8
  • 22

1 Answers1

1

Yes, you should install RVM on their accounts.

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

Eric Sites
  • 126
  • 1