LinuxQuestions.org
Register a domain and help support LQ
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 03-05-2002, 06:45 AM   #1
penzilsinc
LQ Newbie
 
Registered: Mar 2002
Location: Sweden
Distribution: RedHat 7.2
Posts: 4

Rep: Reputation: 0
Angry bad interpreter


Hi everone!

I've run into this problem twice, and the errormessage is:
sh: ./configure: bad interpreter: No such file or directory

There are two other questions about this but they don't apply to me(?). The configure file starts with #!/bin/sh which works fine for other scripts. /bin/sh is a soft link to /bin/bash, I'm running RedHat 7.2.

Greatful for tips, ideas os solutions!!!
 
Old 03-05-2002, 05:04 PM   #2
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
i think there's a problem with the configure scripts, not anything you're doing. what packages are you trying to compile?
 
Old 03-11-2002, 12:57 AM   #3
penzilsinc
LQ Newbie
 
Registered: Mar 2002
Location: Sweden
Distribution: RedHat 7.2
Posts: 4

Original Poster
Rep: Reputation: 0
small advancement - into next problem

Hi!
(been home ill so therefore the delay)

I've seem to figure something out.
The configure-script has some kind of 'dirty' charachter at the end of every line, some kind of wrong end-of-the-line charachter. I haven't seen them with vi or StarOffice but when I used gedit i saw them. Then i opend the file in StarOffice and sawed in text format and the script worked.

The installation I'm trying do performe is PHP, but I ran into the same problem trying to install a newer version Apache. This is a real bugger for me.
-Are there some settnings I can change to prevent this from happening?
I've changed the configure script, ran that, changed the next script I stumbeld upon, and so on, but there are so many changes since it includes so many diffrent scripts. Phew.. it wearing me out.

If you have any ideas I'd be very glad.
 
Old 04-28-2002, 08:02 PM   #4
James Poland
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
Did you un-tgz your packages on a windows box by any chance? Winzip, for example, will add bad characters if you use it rather than a native linux archiver.
-Jp
 
Old 06-26-2002, 01:09 PM   #5
Per Johansson
LQ Newbie
 
Registered: Jun 2002
Location: Sweden
Distribution: Depends on the moon phase...
Posts: 2

Rep: Reputation: 0
Hello!

Please check that the script has the executable bit set.

Best Regards,

Per Johansson
 
Old 06-26-2002, 01:51 PM   #6
Per Johansson
LQ Newbie
 
Registered: Jun 2002
Location: Sweden
Distribution: Depends on the moon phase...
Posts: 2

Rep: Reputation: 0
Oh!

And You can try running

sh configure

instead of

./configure

Best Regards,

Per Johansson
 
  


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 error zum Linux - Software 3 05-31-2005 10:01 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
sh file.sh = bad interpreter Comarez Linux - Newbie 3 01-11-2004 06:33 AM
script: bad interpreter... chunkymunky Programming 6 12-25-2003 09:58 PM


All times are GMT -5. The time now is 07: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