[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl: bad interpreter



On Mon, May 14, 2001 at 10:15:12AM +0200, Florian Petri wrote:
> Hi!
> 
> I have got a problem with perl and one skript... 
[..]
> nuntius:~/dynip-client$ ./dynip-client.pl
> bash: ./dynip-client.pl: bad interpreter: No such file or directory
[..]
> --- ./dynip-client.pl ---
> #!/usr/bin/perl

That script may be having CRLF instead of LF as line terminators.  Thus,
the interpreter it tries to load is '/usr/bin/perl\r', which naturally
doesn't exist.

Try to remove the spurious CR's from the script, for example with
"tr -d '\r' < dynip-client.pl > tmp"  If tmp is slightly smaller, there's
a good chance it'll work too ;)


-- 
Tommi Komulainen                                 Tommi.Komulainen@iki.fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6

Attachment: pgpXVfW1gxPU2.pgp
Description: PGP signature


Reply to: