Issue with ./configure not being found

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...

ApPeL

Posted 2011-08-08T08:54:00.243

Reputation: 121

Answers

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.

Zds

Posted 2011-08-08T08:54:00.243

Reputation: 2 209

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 – 2011-08-08T11:11:37.370

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 – 2011-08-09T00:31:36.277

When you say "ls" on the directory you are trying to find configure in, does it show on file listing? – Zds – 2011-08-09T07:22:50.277

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.

Nithin Philips

Posted 2011-08-08T08:54:00.243

Reputation: 246

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.

Rich Homolka

Posted 2011-08-08T08:54:00.243

Reputation: 27 121