Closed Thread
Results 1 to 4 of 4

Thread: : bad interpreter: No such file or directory

  1. #1
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0

    : bad interpreter: No such file or directory

    I created another Perl script. Placed it on the same Linux machine in the same directory as all of my other scripts. I used the same first line as other scripts.

    Code:
    #!/usr/bin/perl
    and I checked to make sure that perl was in /usr/bin and I still get the error.

    ": bad interpreter: No such file or directory"

    I don't really know what is wrong here. If I use perl myScript.pl it runs fine. Any idea why this error appears?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    fahlyn's Avatar
    fahlyn is offline Learning Programmer
    Join Date
    Nov 2007
    Posts
    35
    Rep Power
    0
    Visit My Google Group Here: Web Development Innovation

  4. #3
    Jordan Guest
    I've also seen this error when there is a dos linebreak in the perl script. Try running dos2unix <file.pl> and see if that fixes the problem.

  5. #4
    Uninverted is offline Newbie
    Join Date
    Dec 2007
    Posts
    11
    Rep Power
    0

    Re: : bad interpreter: No such file or directory

    The interpreter might have been removed at some point; manually go to /usr/bin and make sure it's still there. If it is, I don't know what to tell you.
    My other car return the first item in a list.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. File and Directory security
    By atrip25 in forum PHP Development
    Replies: 7
    Last Post: 11-30-2009, 01:42 PM
  2. Largest directory and/or file
    By Wanch in forum Linux Tutorials, Guides and Tips
    Replies: 1
    Last Post: 10-12-2009, 12:10 AM
  3. Largest file or directory
    By Lop in forum Computer Software/OS
    Replies: 7
    Last Post: 02-13-2008, 11:03 AM
  4. Can't Delete Directory/File
    By Chan in forum Computer Software/OS
    Replies: 5
    Last Post: 12-21-2007, 08:36 AM
  5. Howto: Find the largest directory/file in a directory
    By ptt3 in forum Linux/Unix General
    Replies: 4
    Last Post: 05-28-2007, 02:08 PM

Tags for this Thread

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