Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-07-18, 07:31 PM CDT
zeus Offline
Registered User
 
Join Date: Jul 2004
Posts: 6
/bin/sh: bad interpreter: Permission denied

Every time i execute shell i got this error

bash: ./configure: /bin/sh: bad interpreter: Permission denied

What wrong with my system, it's just happened..as i can remmembered i didnt do nothing wrong ....

I can not compile programs...
Reply With Quote
  #2  
Old 2004-07-18, 08:47 PM CDT
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 23
Posts: 7,902
Assuming you have the bash shell, /bin/sh should be a symlink to bash. First set the right permissions on bash
Code:
chmod 755 /bin/bash
then create the link
Code:
ln -s bash /bin/sh
Reply With Quote
  #3  
Old 2004-07-19, 07:32 AM CDT
zeus Offline
Registered User
 
Join Date: Jul 2004
Posts: 6
Allready done that, but still got the error :/
Reply With Quote
  #4  
Old 2004-07-19, 07:46 AM CDT
Picomp314's Avatar
Picomp314 Offline
Registered User
 
Join Date: May 2004
Posts: 520
do you get this when using any user (root, non-root...)?
Reply With Quote
  #5  
Old 2004-07-20, 08:55 PM CDT
zeus Offline
Registered User
 
Join Date: Jul 2004
Posts: 6
I got this with any users, root or non root.

Thanks for replaying...i am beginning to give up...

I been looking for bashrc in /etc but i think there's nothing wrong with it. And ~/.bashrc either.
Reply With Quote
  #6  
Old 2004-07-21, 05:08 AM CDT
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 23
Posts: 7,902
Could you clarify what you are doing? It looks like you're trying to run a configure script. (That's trying to run another intrepreter?)
Reply With Quote
  #7  
Old 2004-07-21, 07:22 AM CDT
zeus Offline
Registered User
 
Join Date: Jul 2004
Posts: 6
Sorry for my english.

I can not run ./configure because every time i run it it fails looking for GCC . Normaly u can run configure directly without execute sh right?
Normal way in Terminal:
$./configure <<--if i run like this it will give me /bin/sh: bad interpreter: Permission denied

With sh:
$sh ./configure <<-works but it fails to find gcc.

Than I check my environment path, bashrc files. It all pointing ti normal bin directory /usr/bin, /bin.

I think this problem happening after i try to install ATI Radeon driver (with patch). Because before that, i can compile some programs.
Reply With Quote
  #8  
Old 2004-07-21, 09:25 AM CDT
Picomp314's Avatar
Picomp314 Offline
Registered User
 
Join Date: May 2004
Posts: 520
are you sure you actually have gcc installed???
seems that is the problem to me
sh ./configure should work fine
Reply With Quote
  #9  
Old 2005-09-25, 04:31 AM CDT
BerniE_ Offline
Registered User
 
Join Date: Sep 2005
Posts: 1
Maybe the partition has been mounted as user and as noexec.
You can try to add in your fstab "exec" option to that partition.
Hope this can do the trick.
Reply With Quote
  #10  
Old 2005-10-28, 03:09 AM CDT
realopenit Offline
Registered User
 
Join Date: Oct 2005
Location: Delft, Netherlands
Posts: 2
Exclamation bash: ./configure: /bin/bash: bad interpreter: Permission denied

Hi,
I've gotten the same error and I may have an idea what the cause can be.

If you get the error
Code:
bash: ./configure: /bin/bash: bad interpreter: Permission denied
when trying to run ./configure from the command shell, try running instead:
Code:
$sh ./configure
as has been said before.

If that doesn't work because you get the error:
Code:
checking whether the C compiler works... configure: error: cannot run C compiled programs.
I think you'll find that you are using gcc 4.x instead of gcc 3.4, the older version.
There was some change with gcc 4.0 and many older systems haven't caught up with their configuration scripts.

I haven't fixed this error yet myself, but perhaps someone else has. I'd appreciate feedback!
Of course, you can try tyo deinstall gcc 4.x and install gcc 3.x instead but you may not know how or don't want to.

hope this helps someone,
Chris.
www.realopenit.nl
Reply With Quote
  #11  
Old 2005-10-28, 03:37 AM CDT
realopenit Offline
Registered User
 
Join Date: Oct 2005
Location: Delft, Netherlands
Posts: 2
Thumbs up figured it out

Oops.. scratch that... I figured it out... :shame mode on:

The problem with this situation is that you are trying to run a shell file on a partition for which you have no exec rights. I.e. an USB disk, a CD or DVD or some extended, logical hard disk or network partition.

In my case, I have my home dirs installed on a different partition, /dev/hda5. (This gives me freedom to reinstall Linux any time without tampering with my users' data and config/settings.)

Solution:
Anyway, I needed to add the 'exec' option to the /etc/fstab file when mounting that partition.
If it says 'defaults' on the line in /etc/fstab, then it also means you don't have exec rights on it.
Easy as pie! Piece of cake!

Another workaround, when you can't or don't want to mess with the fstab, is to compile/install source only from /tmp. That will always work!

Cheers,
Chris.
www.realopenit.nl
__________________
Open source, open mind
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Denied T3256 General Support 24 2008-09-21 08:49 PM CDT
permission denied azeem ahmad gmane.linux.redhat.fedora.general 1 2006-03-06 02:10 PM CST
Permission denied Xalu General Support 16 2006-01-21 11:15 AM CST
/usr/bin/perl: bad interpreter: Permission denied CheezyArmpit Software 1 2005-08-16 06:12 AM CDT
Permission Denied Gettingthere General Support 2 2005-06-03 02:58 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 11:18 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to NLP-er you enjoy automatic translations (vBET)