 |
 |
./configure
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2001
Status:
Offline
|
|
I'm trying to compile some UNIX binaries, but I'm running into some trouble.
I've been able to compile Apache and PHP, but now I'm trying to compile Icecast, Shout, and Electricsheep (and I get the same error on each):
./configure: Command not found.
I'm located in the directory where configure is located, but it won't let me continue.
If I run "file configure", I get: "configure: Bourne shell script text", so the file is being recognized correctly, it just won't run.
Does anyone have any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Murray, Utah, USA
Status:
Offline
|
|
Without being at the machine seeing what you are seeing it is difficult, but here are some things that I would do:
1. ls -l
Make sure that the configure file is there and set the -rwxrwxrwx (executable)
2. Try typing "./configu" and pressing <tab> (auto-complete). If it doesn't auto-complete then either the file isn't there or isn't an executable (same as attempt #1).
3. I don't know anything about the program you are trying to configure, but it is possible that it maight be an X Windows program? If so, you may need to run the X11 configure program xfconfig (I think) -- sorry, but its been years since I've done this.
Now, if it is there, but not "executable" there are a couple things:
1. chmod 777 (this will make it executable)
2. Try using shell to run it (sh configure)
HTH, 
Jeff
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2001
Status:
Offline
|
|
Thanks. I've tried those things. I don't think it's an X windows specific thing, but I tried it also on Screen and go the following:
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% ./configure
./configure: Permission denied.
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% chmod 777 configure
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% ./configure
./configure: Command not found.
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% sh configure
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% sh ./configure
[planet:~/src/screen-3.9.8/screen-3.9.8] corey% ./configure
./configure: Command not found.
[planet:~/src/screen-3.9.8/screen-3.9.8] corey%
(BTW: Auto completion works)
here's the ll listing:
-rwxrwxrwx 1 corey staff 103077 Jun 14 2000 configure
Does this make any sense?
-corey
Originally posted by jmassung:
Without being at the machine seeing what you are seeing it is difficult, but here are some things that I would do:
1. ls -l
Make sure that the configure file is there and set the -rwxrwxrwx (executable)
2. Try typing "./configu" and pressing <tab> (auto-complete). If it doesn't auto-complete then either the file isn't there or isn't an executable (same as attempt #1).
3. I don't know anything about the program you are trying to configure, but it is possible that it maight be an X Windows program? If so, you may need to run the X11 configure program xfconfig (I think) -- sorry, but its been years since I've done this.
Now, if it is there, but not "executable" there are a couple things:
1. chmod 777 (this will make it executable)
2. Try using shell to run it (sh configure)
HTH, 
Jeff
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2000
Location: Portland, OR USA
Status:
Offline
|
|
The configure script is probably trying to call a program that doesn't exist, hence "Program not found." You could try sourcing the configure script (". ./configure") and see if you get a more meaningful error.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Location: New York, NY USA
Status:
Offline
|
|
check the first line of the script. if should say something like
#!/bin/foo
where /bin/foo is the interpreter the script uses to execute all the commands in the script. make sure this exists, with the path specified in the configure script, on your system, or else you'll get exactly the erro you mentioned:
./configure: command not found
a bit misleading, but if you know what it's doing, it makes sense.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by battlej:
check the first line of the script. if should say something like
#!/bin/foo
where /bin/foo is the interpreter the script uses to execute all the commands in the script. make sure this exists, with the path specified in the configure script, on your system, or else you'll get exactly the erro you mentioned:
./configure: command not found
a bit misleading, but if you know what it's doing, it makes sense.
in this case sh configure should really work...
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2001
Status:
Offline
|
|
The first line of the file says:
#!/bin/sh
So, it should be a shell script, right?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Apr 2001
Location: New York, NY USA
Status:
Offline
|
|
Originally posted by carbondesign:
The first line of the file says:
#!/bin/sh
So, it should be a shell script, right?
if /bin/sh exists, (try running it...) and ./configure is executable.
and yes, it is a shell script.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status:
Offline
|
|
It sounds like something near the top of the shell script is failing. Weird. Maybe try
zsh configure
And see if that shell parses the script any better. Quite bizarre.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|