Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > Perl

Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-2008, 11:23 AM
Chan Chan is offline
Programming Professional
 
Join Date: Jun 2006
Posts: 204
Rep Power: 9
Chan is on a distinguished road
Default : 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-19-2008, 07:39 PM
fahlyn's Avatar   
fahlyn fahlyn is offline
Learning Programmer
 
Join Date: Nov 2007
Age: 25
Posts: 35
Rep Power: 3
fahlyn is on a distinguished road
Send a message via ICQ to fahlyn Send a message via AIM to fahlyn Send a message via MSN to fahlyn Send a message via Yahoo to fahlyn
Default

See if this helps.
__________________
Visit My Google Group Here: Web Development Innovation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 08:52 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 4,707
Last Blog:
PHP: gzip Compression
Rep Power: 50
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-30-2008, 08:05 PM
Uninverted Uninverted is offline
Newbie
 
Join Date: Dec 2007
Posts: 11
Rep Power: 0
Uninverted is on a distinguished road
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Largest file or directory Lop Computer Software/OS 7 02-13-2008 01:03 PM
Getting a C# program with a manifest file to run in the debugger xarzu C# Programming 0 01-18-2008 06:38 PM
Whether a given file argument is a directory or not ? Gordack C and C++ 1 01-01-2008 04:27 PM
text file manipulations in vb6.0 Ronin_paes Visual Basic Programming 3 06-11-2007 04:54 AM
Windows XP Tricks & Tips!!!!..new ones. pranky Tutorials, Classes and Code 7 02-01-2007 10:58 PM


All times are GMT -5. The time now is 02:14 AM.

Contest Stats

dargueta ........ 128.00000
John ........ 127.00000
Xav ........ 107.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads