Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    47
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Unhappy 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?

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    are you in the same directory as filename.rb? clearly chmod is unable to find filename.rb !!
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • Users who have thanked shyam for this post:

    Jearb (10-19-2008)

  • #3
    New Coder
    Join Date
    Jun 2008
    Posts
    47
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Okay, it worked. Thanks a bunch!
    Last edited by Jearb; 10-20-2008 at 02:33 PM. Reason: Resolved


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •