LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2003, 10:00 PM   #1
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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
I have tried as a user and as root. I am not perl savvy enough to tell if it is the fault of the script.
The permission of perl5.8.0 is:
Code:
-rwxr-xr-x
The permission of the perl symlink is:
Code:
lrwxrwxrwx
Do I need to install a less bunked up version of perl?
Any thoughts are appreciated.

Sorry, I should mention it isn't my script, I downloaded it ...
 
Old 01-26-2003, 10:24 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try this first:

which perl

then compare the output to the entry in the script.
 
Old 01-26-2003, 11:41 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Original Poster
Rep: Reputation: 78
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.

Last edited by bulliver; 01-26-2003 at 11:45 PM.
 
Old 01-27-2003, 09:29 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,534

Rep: Reputation: 132Reputation: 132
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
 
Old 01-27-2003, 04:12 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Original Poster
Rep: Reputation: 78
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: bad interpreter, permission denied jpantone Linux - General 22 05-27-2010 07:05 AM
/bin/sh: bad interpreter: Permission denied itsaso Linux - Newbie 6 05-18-2005 11:00 AM
: bad interpreter: Permission denied LinuxRam Linux - Newbie 2 08-22-2004 10:33 PM
/bin/sh: bad interpreter: Permission denied linmix Linux - Software 12 08-16-2004 07:40 AM
bad interpreter: Permission denied when compile any program docesam Linux - Software 4 06-06-2003 12:05 AM


All times are GMT -5. The time now is 09:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration