Helpful Information
 
 
Category: Ruby & Ruby On Rails
Trouble with Executables?

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?

are you in the same directory as filename.rb? clearly chmod is unable to find filename.rb !!

Okay, it worked. Thanks a bunch!










privacy (GDPR)