View Full Version : Perl Scripts: Wither #! /bin/perl?

04-14-2004, 01:00 PM
On my old provider, I indicated perl scripts by having them executable, with the first line being #! /bin/perl

Here at westhost, when I try to do that, I get the error

sh: ./mrj.size: /bin/perl: bad interpreter: Permission denied

(note that my script works fine if I do:

perl ~/bin/mrj.size)

So, what's different here?

04-14-2004, 02:16 PM
The path here is

Have you tried that?

All the paths are listed here

Not sure that was what you where asking but it should get your scripts running. :)

02-24-2005, 12:13 PM
If you have a bunch of scripts and don't want to change them all, you could just make a link from /bin/perl to /usr/bin/perl:

$ ln -s /usr/bin/perl /bin/perl

A couple things to check first:
1. make sure your perl interpreter is actually at /usr/bin/perl
2. make sure it already isn't linked in /bin/perl

On my host (a virtual private server) both /usr/bin/perl and /bin/perl are linked to /usr/local/bin/perl (which is linked to /usr/local/perl/bin/perl. It did not require any setup on my part.

You might check the westhost site manager for your account to see if perl is installed. Maybe try clicking uninstall and then reinstall, or build perl yourself and link to it. (Though I'm having trouble doing just that myself.)

02-24-2005, 03:42 PM
See this thread for a possible solution:


Someone else was having frouble with files using windows file formats:
\r\n instead of just \n