LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sh file.sh = bad interpreter (https://www.linuxquestions.org/questions/linux-newbie-8/sh-file-sh-%3D-bad-interpreter-133622/)

Comarez 01-11-2004 05:24 AM

sh file.sh = bad interpreter
 
hello,
i just got my first SuSE installation (not my first distro) and i experienced a problem when i tried installing flashplayer.
when i give the command "./flashplayer-installer" to start the install, bash returns the following error:
bash: ./flashplayer-installer: /bin/sh: bad interpreter: access denied

i tried to chmod the file but the error remains. I really don't know what to do next, never had such an error before.

greetz

scott_R 01-11-2004 05:44 AM

Maybe try downloading it again. If it's just a shell script, make sure it has "#! /bin/bash" at the top. If not, try changing it to that. Your system might not have a link from /bin/sh to /bin/bash (most newer ones do, as they assume you use bash as your interpter). If you use another shell, like csh, you'll probably need to adjust that to point to the csh interpeter. (Actually, you'll likely want to check the file to make sure it conforms to csh, as they are a little different, and can cause problems for files written with another shell in mind.)

Comarez 01-11-2004 05:53 AM

hmm yes, i solved it with: sh flashplayer-installer
well, now i got to find mozilla's intallation path...

hw-tph 01-11-2004 06:33 AM

The standard Mozilla lib directory is /usr/lib/mozilla and the plugins dir is /usr/lib/mozilla/plugins, but your distribution may have it elsewhere.


Håkan


All times are GMT -5. The time now is 09:18 PM.