When I do a gem install -r rails --include-dependencies it works fine on Linux, but when I do it from a OS/X bash shell, I get the error message Permission denied - /usr/local/lib/ruby/gems/1.8/cache/ activesupport-1.4.4.gem The error is reproducible. What could be the problem? Ronald --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
gundestrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-24 13:58 UTC
Re: "permission deinied" when installing Rails on OS/X
dear sir you have to use sudo when installing gems. On Oct 24, 3:52 pm, Ronny <ro.naldfi.sc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I do a > > gem install -r rails --include-dependencies > > it works fine on Linux, but when I do it from a OS/X bash shell, I get > the error message > > Permission denied - /usr/local/lib/ruby/gems/1.8/cache/ > activesupport-1.4.4.gem > > The error is reproducible. What could be the problem? > > Ronald--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
put the word "sudo" before the word "gem" and it will ask for your password and should then work fine. On 10/24/07, Ronny <ro.naldfi.scher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > When I do a > > gem install -r rails --include-dependencies > > it works fine on Linux, but when I do it from a OS/X bash shell, I get > the error message > > Permission denied - /usr/local/lib/ruby/gems/1.8/cache/ > activesupport-1.4.4.gem > > The error is reproducible. What could be the problem? > > Ronald > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Damian Terentiev
2007-Oct-24 14:06 UTC
Re: "permission deinied" when installing Rails on OS/X
On Oct 24, 2550 BE, at 17:52, Ronny wrote:> The error is reproducible. What could be the problem?You probably should use sudo. sudo gem install rails --include-dependencies --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 24, 3:58 pm, "gundest...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <gundest...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> you have to use sudo when installing gems.I see! But there is one strange thing: When I enter the password of my Mac OS administrator account, it is rejected by sudo! First I thought I used the wrong password, but no: I can reproducibly switch to my Mac Administrator account using this password, but when I supply it to ''sudo'', it is not accepted. It looks to me like a "mismatch of account names": When I list /etc/ passwd from my bash shell, I get (of course) the user "root" as administrator. From the Mac viewpoint, I have no user named "root", but I have an user with name "Administrator" having administrator privileges (and of this, I know the password of course). However I can not remember having ever created a separate password for the root user in the "Unix compatibility box". Any idea how I could resolve this? Ronald --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I was able to narrow the problem further: First, I found that I can not do a switch user to root (because of rejecting the password, as explained in my previous posting), but I can do, for example, a su admin and this account corresponds to my Mac OS/X administrator account. So I tried first gem install -r rails --include-dependencies from the admin account - but now I get the error message Could not find rails (> 0) in any repository This puzzles me, because on Linux, the same works fine. Note that I usually get this error message only when I forget the ''-r'' option in the gem install command. A side remark regarding the suggestion of using "sudo" for the install: I found that even though I can do a "su admin", when I do a sudo -u admin .... the same password which was happily accepted by "su", is now rejected. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bart Zonneveld
2007-Oct-24 15:16 UTC
Re: "permission deinied" when installing Rails on OS/X
If you run sudo, you must enter the password for the user you''re running sudo for. So, if you''re logged in as user john, and you type sudo something, you must enter john''s password. Hope that helps.. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---