Cannot run install sh scripts, and bash is FUBAR...what to do?
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60
Rep:
Cannot run install sh scripts, and bash is FUBAR...what to do?
Exactly that. I cannot run installation shell scripts...Why? I've tried to install both OpenOffice and Java, and cannot seem to run them...Here's what the OOo install says:
Code:
bash-2.05b# ./install
bash: ./install: /bin/sh: bad interpreter: Permission denied
And, running a normal shell script:
Code:
bash-2.05b# ./blah
bash: ./blah: /bin/sh: bad interpreter: Permission denied
Also, as I said, Bash is all screwy (bash2.05b), and I'd like it to display the current folder, or something similar if possible...Is there something wrong with my bash install? Normal programs run fine (e.g. $ firefox), but not when I use ./-something-.
Have you tried doing a chmod +x to the file your tring to run?
Is there symlink set from /bin/sh to /bin/bash? Either should have exec bit set anyway and my be worth checking.
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60
Original Poster
Rep:
...That article didn't help much...and /bin/bash was set to exec. Thanks anyways.
I tried it in different shells (bash,ksh,sh). They all say something like permission denied; therefore, it's not a problem with bash. But, if I execute a normal program with the ./ prefix-command-thing, e.g. gimp, firefox, whatever is in /usr/bin, /bin, /sbin, etc it runs just fine. Perhaps my permissions are not being set correctly, for the files I "created" (not from the install)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.