Issue with ./configure not being found

6,593

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

Solution 2

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.

Share:
6,593

Related videos on Youtube

Bustergun
Author by

Bustergun

Developer / Designer / Entrepreneur

Updated on September 18, 2022

Comments

  • Bustergun
    Bustergun almost 2 years

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

  • Bustergun
    Bustergun almost 13 years
    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.
  • billc.cn
    billc.cn almost 13 years
    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.
  • Zds
    Zds almost 13 years
    When you say "ls" on the directory you are trying to find configure in, does it show on file listing?