.script/server on OS X

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.

On 9/26/06, Mike [email protected] 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

Thanks James! That worked.

Strange.

JDL wrote:

On 9/26/06, Mike [email protected] 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

Unless you checked out code that’s been checked in first on a Win box
perhaps. This has happened to me.

Vish

Unless you checked out code that’s been checked in first on a Win box
perhaps. This has happened to me.

Same for me.

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 [email protected] 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.tadspot.com