Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What does “bad interpreter” mean?

bad interpreter mean
0
Posted

What does “bad interpreter” mean?

0

(contributed by brian d foy) The “bad interpreter” message comes from the shell, not perl. The actual message may vary depending on your platform, shell, and locale settings. If you see “bad interpreter – no such file or directory”, the first line in your perl script (the “shebang” line) does not contain the right path to perl (or any other program capable of running scripts). Sometimes this happens when you move the script from one machine to another and each machine has a different path to perl–/usr/bin/perl versus /usr/local/bin/perl for instance. It may also indicate that the source machine has CRLF line terminators and the destination machine has LF only: the shell tries to find /usr/bin/perl, but can’t. If you see “bad interpreter: Permission denied”, you need to make your script executable.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123