Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-01-2004, 03:10 PM   #1
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
./configure - not found, but file exist

Here is the problem:
(23:06:53)[ivanatora@~/Archives/cube/source/cube_2003_12_23_src/enet]$ ./configure
: bad interpreter: No such file or directory
(23:06:55)[ivanatora@~/Archives/cube/source/cube_2003_12_23_src/enet]$ ls
aclocal.m4    depcomp     host.c      list.c       memory.o       peer.o      tutorial.txt
api.txt       design.txt  host.o      list.o       missing        protocol.c  unix.c
configure*    docs/       include/    Makefile     mkinstalldirs  protocol.o  unix.o  Doxyfile    install-sh  packet.c       pyenet/     win32.c
CVS/          enet.dsp    libenet.a  packet.o       README      win32.o
demo/         enet.txt    LICENSE     memory.c     peer.c         test/
(23:06:56)[ivanatora@~/Archives/cube/source/cube_2003_12_23_src/enet]$ ./configure
: bad interpreter: No such file or directory
(23:07:50)[ivanatora@~/Archives/cube/source/cube_2003_12_23_src/enet]$ /home/ivanatora/Archives/cube/source/cube_2003_12_23_src/enet/configure
: bad interpreter: No such file or directorycube_2003_12_23_src/enet/configure: /bin/sh
The file is there, I can see it via ls, but when I try to execute it, the shell says it doesn't exist.. I can see it via mc, too, but can't execute it too.. Already toggled +x flag. Am I doing something wrong or it's nasty system's fault!?

Last edited by ivanatora; 01-01-2004 at 03:12 PM.
Old 01-01-2004, 03:14 PM   #2
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
it says.. configure*

not configure...

try ./configure*
Old 01-01-2004, 03:15 PM   #3
Registered: Dec 2003
Posts: 30

Rep: Reputation: 15
what's the first relevant line in the file? #!/bin/sh or something?
Old 01-01-2004, 03:20 PM   #4
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The * just denotes it as executable. Notice that the directories have / after the names. It's probably an ls alias doing that.

As for the original question about the bad interpreter, the first line of the configure script is what's broken. Check that the #! file actually exists. Also, make sure that there are no ^M in the file.
Old 01-01-2004, 03:26 PM   #5
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
Thanks! There was a space: "#! /bin/sh" Now it almost work.. there are similar mistakes all trough the configure scripts..
Thanks for the idea, again


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to redirect text to a file to cat at later point. says file doesn't exist. dr_zayus69 Programming 1 10-02-2005 08:10 AM
xine configure error zlib does exist degraffenried13 Linux - General 2 12-13-2004 04:51 AM
The file or directory file:/misc/cdrom does not exist rangerssg Linux - Newbie 5 08-29-2004 05:17 AM
File does not exist/Large file support dreamtheater Linux - General 3 04-19-2004 09:14 AM
File does not exist. And yet it does...what to do? Trinity22 Linux - General 2 12-11-2003 07:46 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration