Results 1 to 3 of 3

Thread: /bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or directory

  1. #1
    Join Date
    Jan 2009
    Beans
    62

    /bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or directory

    I wrote a perl script in ubuntu, in vim.

    I put this at the top:
    Code:
    #!usr/bin/perl
    (I also tried a -W but the result is the same)

    The script works find if I run the script using perl.

    When I run it with ./ I get this error:

    Code:
    /bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or directory
    Just to emphasize, I did not write this in windows. This script has never seen windows.

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: /bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or direc

    Try

    Code:
    #!/usr/bin/perl

  3. #3
    Join Date
    Jan 2009
    Beans
    62

    Re: /bin/bash: ./perl_script.pl: usr/bin/perl: bad interpreter: No such file or direc

    That did it. Thanks.

Bookmarks

Posting Permissions

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