2

I recently upgraded to OSX Lion, and I have been clearing a lot of thing out in my dev environment that is not being used anymore.

My ./configure has seem to have disappeared, and I have made sure that the item I am trying to compile does have the need for ./configure.

Any ideas, pointers where to start...

3 Answers 3

1

First thing to check is that you are in the correct directory. ./configure means "Find executable file named configure in the current working directory and execute it". Ie. you need to be in the correct directory when issuing the command. The configure command is also not a system-wide executable, but instead it's a script specific to the program you are trying to compile.

Going into root directory of the said software source tree and saying "ls" should list you files there and show the configure script, if it exists.

3
  • Yeah I have actually checked that the package has to make use of ./configure, trying to compile MySQL from source, and still just gives me an error saying that the ./configure script cannot be found, odd.
    – ApPeL
    Aug 8, 2011 at 11:11
  • What did you use to extract the source for MySQL? Maybe it didn't set the execution (x) flag on the configure file? After all, it's just a text file. You need the x bit to make it an executable.
    – billc.cn
    Aug 9, 2011 at 0:31
  • When you say "ls" on the directory you are trying to find configure in, does it show on file listing?
    – Zds
    Aug 9, 2011 at 7:22
1

Like Rich said, you can use autotools to regenerate the configure script.

Make sure that the files named configure.ac (or configure.in) are present in the directory and run:

autoreconf -i

For most projects this should restore the configure script.

0

A gmake distclean will remove the configure script. Depending on how you cleaned things, you may have deleted the script.

If your machine has the automake tools, you'll be able to regenerate the script. But automake is weird sometimes, and even if you do have the tools, you may find it easier to just re-download the source package.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .