LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 07:47 PM   #1
gopikrish
LQ Newbie
 
Registered: Aug 2004
Posts: 28

Rep: Reputation: 15
Can't execute a file since bad interpreter


After mounting my floppy and untarring a .tar file, I executed one file called as "configure" using the command ./configure and it said,
bash: ./configure: /bin/bash: bad interpreter: permission denied

So how to successfully execute that file?
 
Old 08-20-2004, 07:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Do a
ls -ld /bin/*sh*

Does bash show up, if so, what are the permissions?


Cheers,
Tink
 
Old 08-20-2004, 08:52 PM   #3
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Re: Can't execute a file since bad interpreter

Quote:
Originally posted by gopikrish
After mounting my floppy

/bin/bash: bad interpreter: permission denied
Is the floppy mounted with the "noexec" (no execute) option? You can find out by running the mount command.

The floppy may be mounted "noexec" without you specifying it in /etc/fstab. For example, msdos filesystems mount with the "noexec" option by default, resulting in the "permission denied" error.

If you're using the msdos filesystem on the floppy, add "exec" to the options in /etc/fstab for the floppy device in question. For example:
Code:
/dev/fd0         /home/lyle/floppy auto noauto,users,exec     0   0
Lyle
 
  


Reply



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
bad interpreter: No such file or directory EcLip$e Linux - General 34 10-07-2013 03:11 AM
: bad interpreter: No such file or directory ciberrust Linux - Networking 10 09-09-2010 06:51 AM
: bad interpreter: No such file or directory lnx8 Linux - General 4 04-29-2004 02:56 AM
sh file.sh = bad interpreter Comarez Linux - Newbie 3 01-11-2004 06:33 AM
bash: ./myscript: bad interpreter: No such file or directory Stefangeelen Linux - Newbie 3 09-05-2002 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:21 AM.

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