Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Trouble with Executables?

View previous topic View next topic Go down 
AuthorMessage
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Trouble with Executables? Empty
PostSubject: Trouble with Executables?   Trouble with Executables? EmptyFri Jul 27, 2012 11:34 pm

Hello! I am by no means a Ruby expert - in fact, I'm a mega newb. I'm running it on Leopard, and so far it's going great - but when I am trying to make one of my programs into an executable, it throws an error - even when I put #!/usr/bin/ruby at the start of the program.

The following is from the terminal:

chmod +x filename.rb
chmod: filename.rb: No such file or directory

This is rather aggravating, because I strive to be able to make easily executable programs. Is anyone having the same problem, or know what the problem is?
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Trouble with Executables? Empty
PostSubject: Re: Trouble with Executables?   Trouble with Executables? EmptyFri Jul 27, 2012 11:34 pm

are you in the same directory as filename.rb? clearly chmod is unable to find filename.rb !!
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Trouble with Executables? Empty
PostSubject: Re: Trouble with Executables?   Trouble with Executables? EmptyFri Jul 27, 2012 11:34 pm

Okay, it worked. Thanks a bunch!
Back to top Go down
Sponsored content




Trouble with Executables? Empty
PostSubject: Re: Trouble with Executables?   Trouble with Executables? Empty

Back to top Go down
 

Trouble with Executables?

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Trouble with Executables? Edit-trash Useless :: Trash-