Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ./configure

./configure
Thread Tools
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
May 7, 2001, 01:25 PM
 
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
Reply With Quote
May 7, 2001, 01:52 PM
 
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
Reply With Quote
May 7, 2001, 02:03 PM
 
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
Reply With Quote
May 7, 2001, 03:51 PM
 
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
Reply With Quote
May 9, 2001, 01:44 PM
 

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
Reply With Quote
May 9, 2001, 01:55 PM
 
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
Reply With Quote
May 9, 2001, 02:28 PM
 
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
Reply With Quote
May 11, 2001, 10:25 PM
 
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
Reply With Quote
May 12, 2001, 01:47 AM
 
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.

     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2