pauld
2009-Oct-16 07:18 UTC
Having trouble updating Gems; need to change write permissions on directory
Hi-- I just updated to Rails 2.2.3 last night. Wanted to develop a new app today but got message that I needed to update Gems from 1.3.1 to 1.3.2 So, I ran Terminal and entered the gems update --system command. I got message returned saying " While executing gem ... (Gem::FilePermissionError) You don''t have write permissions into the / Library/Ruby/Gems/1.8 directory" So I went into all those directories and changed write permissions, including all the parent directories, and then rebooted the computer (MBP running Leopard). When I ran the same command, I was returned the same message. What am I doing wrong? TIA
Colin Law
2009-Oct-16 07:38 UTC
Re: Having trouble updating Gems; need to change write permissions on directory
2009/10/16 pauld <paul.denlinger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Hi-- > > I just updated to Rails 2.2.3 last night. Wanted to develop a new app > today but got message that I needed to update Gems from 1.3.1 to 1.3.2 > > So, I ran Terminal and entered the gems update --system command. I got > message returned saying " While executing gem ... > (Gem::FilePermissionError) You don''t have write permissions into the / > Library/Ruby/Gems/1.8 directory" > > So I went into all those directories and changed write permissions, > including all the parent directories, and then rebooted the computer > (MBP running Leopard). When I ran the same command, I was returned the > same message.If this were Ubuntu I would say that you need to use sudo, and it is gem not gems, so sudo gem update --system If your OS does not use sudo then maybe you need to be root or something. Colin
Marnen Laibow-Koser
2009-Oct-16 19:43 UTC
Re: Having trouble updating Gems; need to change write perm
Colin Law wrote:> 2009/10/16 pauld <paul.denlinger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> So I went into all those directories and changed write permissions, >> including all the parent directories, and then rebooted the computer >> (MBP running Leopard). When I ran the same command, I was returned the >> same message. > > If this were Ubuntu I would say that you need to use sudo, and it is > gem not gems, so > sudo gem update --system > > If your OS does not use sudo then maybe you need to be root or > something. >Mac OS X uses sudo in the same way that Ubuntu does. The OP should have done this instead of changing directory permissions.> ColinBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.