I just got rails installed on OS X, and when I try .script/server I get a -bash: ./script/server: Permission denied error. I installed ruby in /user/local/bin. If I do ruby ./script/server it works OK. Has anyone else run into this? I think it might have something to do with the shebang, perhaps? Thanks. -- 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 -~----------~----~----~----~------~----~------~--~---
On 9/26/06, Mike <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I just got rails installed on OS X, and when I try .script/server I get > a -bash: ./script/server: Permission denied error. > > I installed ruby in /user/local/bin. > > If I do ruby ./script/server it works OK. > > Has anyone else run into this? I think it might have something to do > with the shebang, perhaps? >$ chmod +x ./script/server That''s weird though, because I''m pretty sure that it should have executable permissions by default. It doesn''t have anything to do with Ruby, but rather the rails command doesn''t seem to be setting your permissions correctly (or you changed them). When I run ''rails project'' on OS X, all of my scripts are created with permissions of 755. -- James --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks James! That worked. Strange. JDL wrote:> On 9/26/06, Mike <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> > $ chmod +x ./script/server > > That''s weird though, because I''m pretty sure that it should have > executable permissions by default. It doesn''t have anything to do > with Ruby, but rather the rails command doesn''t seem to be setting > your permissions correctly (or you changed them). When I run ''rails > project'' on OS X, all of my scripts are created with permissions of > 755. > > > -- James-- 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 -~----------~----~----~----~------~----~------~--~---
Unless you checked out code that''s been checked in first on a Win box perhaps. This has happened to me. Vish On 9/26/06, JDL <jamesludlow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 9/26/06, Mike <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > I just got rails installed on OS X, and when I try .script/server I get > > a -bash: ./script/server: Permission denied error. > > > > I installed ruby in /user/local/bin. > > > > If I do ruby ./script/server it works OK. > > > > Has anyone else run into this? I think it might have something to do > > with the shebang, perhaps? > > > > $ chmod +x ./script/server > > That''s weird though, because I''m pretty sure that it should have > executable permissions by default. It doesn''t have anything to do > with Ruby, but rather the rails command doesn''t seem to be setting > your permissions correctly (or you changed them). When I run ''rails > project'' on OS X, all of my scripts are created with permissions of > 755. > > > -- James > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> > Unless you checked out code that''s been checked in first on a Win box > perhaps. This has happened to me.Same for me. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''ve just learned that there is a subversion property called svn:executable which supposedly will make files checked in from windows executable in Unix systems. I haven''t tested this yet though. It can be set in Tortoise by right clicking on the file, going into the SVN menu and chosing Properties. One of the properties in the drop down is called svn:executable. From what it says, you just need to have this property on the file for it to work. Neato, huh? On 9/26/06, Thibaut Barrère <thibaut.barrere-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Unless you checked out code that''s been checked in first on a Win box > > perhaps. This has happened to me. > > > Same for me. > > > > >-- Terry (TAD) Donaghe http://www.rubynoob.com http://www.tadspot.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---