perl: bad interpreter: Permission denied
Hello all,
I am trying to run a simple perl script that converts mp3s to oggs, but it throws errors: Code:
bash: ./mp32ogg: /usr/bin/perl: bad interpreter: Permission denied The permission of perl5.8.0 is: Code:
-rwxr-xr-x Code:
lrwxrwxrwx Any thoughts are appreciated. Sorry, I should mention it isn't my script, I downloaded it ... |
try this first:
which perl then compare the output to the entry in the script. |
Which perl gives me /usr/bin/perl, which is the same as the shebang line in the script...
I guess I'm just trying figure out if this is a bad script or a bad perl. I'm thinking bad perl because of the 'bad interpreter', bit, but the permissions thing is making me think perhaps the script is trying to do something that it is not allowed to (it has to delete files, and create new ones), but everywhere I have the script working is publically rwx'able. What a noodle scratcher.Anyone seen this error before? EDIT: I just wrote "hello world" in perl and it worked fine. Looks like I have a bunk script. |
it is an errror message u receive when your perl script is not
0755 executable. u're talking of a symlink that has permissions set to 0777. as a matter of fact symlinks tend to have these permission by default but u should check out permissions of your original perl script and set it to 0755 or similar. i dont think there are 'broken versions' of perl5.8 available. cheers, jens |
He he, I'm not totally green, the first thing I checked was the permissions of the script. As I said, other perl scripts work fine, so I just got a script that won't work for me. Rather than waste a bunch of time debugging it I just wrote my own shell script which does the same thing (convert mp3s to oggs).
|
All times are GMT -5. The time now is 07:10 AM. |