LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-20-2004, 10:23 AM   #1
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Rep: Reputation: 15
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-.
 
Old 11-20-2004, 10:59 AM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
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 11:02 AM.
 
Old 11-20-2004, 05:49 PM   #3
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Didn't work, the symlink was set, and even when i reset it from bash to /bin/bash it still didn't work.
 
Old 11-20-2004, 06:06 PM   #4
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
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!
 
Old 11-20-2004, 08:44 PM   #5
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
...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)?
 
Old 11-20-2004, 09:09 PM   #6
asdfjkl
Member
 
Registered: Aug 2004
Distribution: Slack 10.0, have used Mandrake 10.0, Suse 9.1
Posts: 60

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


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
How to run Bash scripts like thread in Java? nguyenzoro Linux - General 1 11-11-2005 02:08 AM
Suitable place to run bash scripts Skyline Programming 7 01-21-2004 07:37 PM
How to Run perl scripts using bash Boudewijn Linux - Software 2 11-26-2003 03:37 AM
bash scripts won't run aamehl Linux - General 10 09-06-2003 02:25 PM
Install scripts do not run...BASH# no such command tmera Linux - General 1 12-17-2000 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 PM.

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
Open Source Consulting | Domain Registration