You are not logged in.

#1 2011-03-02 14:10:12

edeimos
Member
Registered: 2011-03-02
Posts: 2

Ruby RVM and installing gems

I'm not sure about the best way to manage ruby gems using rvm.

I followed the wiki guidelines for installing rvm system wide. When I install a gem using 'gem install rails' I get a file permission error for the /usr/local/rvm/gems/ruby-1.8.7-p334 directory. The rvm guidelines states DO NOT use sudo. Is it advisable to ignore this since I am using a system wide install?

Am I better off using a per user install?

I'm interested to know other arch users' experience and approach to using rvm.

Thanks,

Ed

Offline

#2 2011-03-02 15:07:36

awkwood
Member
From: .au <=> .ca
Registered: 2009-04-23
Posts: 91

Re: Ruby RVM and installing gems

A per-user install makes sense unless you have multiple accounts using the same machine and prevents the need to use sudo.
I use RVM daily with this setup and haven't had any problems.

If you'd prefer to go stick with the system-wide installation then ensure you're now a member of the rvm group.
The system-wide script should have added this group for you and set up permissions on the rvm directory.

These links give a more detailed explanation of what the install script actually does and how to do the same thing manually:

http://rvm.beginrescueend.com/deployment/system-wide/
http://blog.ninjahideout.com/posts/rvm- … ntegration
http://injekt.net/blog/9-rvm-plays-nice-on-production

Offline

Board footer

Powered by FluxBB