Hello all, I am completely new to Ruby on Rails. When i install gems some of them get installed to ~/.gem folder as apparently the other location is not writable. What is the best way to go about this: chmod the folder in Library, let gems go to ~/.gem, sudo install gems always? What do you guys use? Thanks in advance, Wojtek -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Wojtek Galaj wrote in post #961468:> Hello all, > > I am completely new to Ruby on Rails. > > When i install gems some of them > get installed to ~/.gem folder as apparently the other location is not > writable. > > What is the best way to go about this: chmod the folder in Library, > let gems go to ~/.gem, sudo install gems always? What do you guys use?Use sudo always, unless you''re using RVM or you''ve changed your GEM_HOME permissions as Homrebrew recommends.> > Thanks in advance, > WojtekBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 14, 4:12 pm, Wojtek Galaj <wojtek.ga...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What is the best way to go about this: chmod the folder in Library, > let gems go to ~/.gem, sudo install gems always? What do you guys use?I use sudo for system lib, but also vendor everything when deployed. IMO gems in system lib should be treated like system software, could be used by other programs in OS or other users. If you have another local user they could overwrite the gem and cause problems for everyone. Unfortunately that also means system lib is volatile and could be ''helpfully upgraded'' at any moment by admins. I sure hope Gemfile is gem config tool that actually works... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.