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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-20-2004, 11:23 AM
|
#1
|
Member
Registered: Aug 2004
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-.
|
|
|
11-20-2004, 11:59 AM
|
#2
|
Member
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299
Rep:
|
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.
Last edited by The_JinJ; 11-20-2004 at 12:02 PM.
|
|
|
11-20-2004, 06:49 PM
|
#3
|
Member
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60
Original Poster
Rep:
|
Didn't work, the symlink was set, and even when i reset it from bash to /bin/bash it still didn't work.
|
|
|
11-20-2004, 07:06 PM
|
#4
|
Member
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299
Rep:
|
Quote:
Originally posted by asdfjkl;
Didn't work, the symlink was set, and even when i reset it from bash to /bin/bash it still didn't work.
|
Does /bin/bash have the exec bit set?
Maybe this may be of interest http://www.linuxgazette.com/issue52/okopnik.html
Good Luck!
|
|
|
11-20-2004, 09:44 PM
|
#5
|
Member
Registered: Aug 2004
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)?
|
|
|
11-20-2004, 10:09 PM
|
#6
|
Member
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60
Original Poster
Rep:
|
Oh, and does it make a difference that I have _no_ bashrc? I mean, absolutely none...the file /etc/bashrc is there, but it does not contain anything.
|
|
|
All times are GMT -5. The time now is 10:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|