LinuxQuestions.org
Review your favorite Linux distribution.
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 02-20-2004, 10:58 AM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
./configure - bad interpreter


Using the howto here:

http://www.fr.linuxfromscratch.org/v...e2fsprogs.html

Installing e2fsprogs 1.34, getting this error:

Code:
debian:mnt/e2fsprogs-1.34# ./configure
: bad interpreter: No such file or directory

Same if I try to exec it from the build directory, as in the howto:

Code:
../e2fsprogs-1.34/configure --prefix=/usr --with-root-prefix="" \
    --enable-elf-shlibs
: bad interpreter: No such file or directory
Any advice always appreciated. TIA.
 
Old 02-20-2004, 11:45 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
That message usually comes from the first line of a script. It should have something like
#!/bin/bash to point to a script interpreter
What is in the first line of

../e2fsprogs-1.34/configure ?
 
Old 02-20-2004, 11:58 AM   #3
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
#! /bin/sh

Full script is here:

http://www.fortunatemind.com/e2fs/

Thanks again.
 
Old 02-20-2004, 02:14 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
AHA! It is
#! /bin/sh

If sh is undefined on your system, this will give the message you found. You could define /bin/sh to point to /bin/bash or you could edit that first line to be
#!/bin/bash

and let her rip.
Try ls /bin to see if sh is there...
To define sh, you could, as root,
#ln -s /bin/bash /bin/sh
 
Old 02-23-2004, 08:11 AM   #5
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Got it installed. Good thing this was in the newbie forum.

Had to do a ./configure from a separate build directory, on a non-mounted partition.



Last edited by Seventh; 02-23-2004 at 10:22 AM.
 
  


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
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
bad interpreter in script c0d3 Programming 11 12-15-2004 04:48 AM
bad interpreter???? yenonn Programming 4 09-25-2004 05:21 AM
/bin/sh: bad interpreter mullog Linux From Scratch 1 06-09-2004 02:30 PM
bad interpreter penzilsinc Linux - Newbie 5 06-26-2002 01:51 PM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration