View Full Version : Trouble with Executables?

10-18-2008, 05:37 AM
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?

10-18-2008, 06:09 PM
are you in the same directory as filename.rb? clearly chmod is unable to find filename.rb !!

10-19-2008, 01:28 AM
Okay, it worked. Thanks a bunch!