Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install MySQL on Snow Leopard. The commands go something like this:

cd mysql
sudo make install

However, I am not able to get past the configure step because I get this message:

-bash: ./configure: No such file or directory

My question is:

What is the ./configure step trying to do? Is it a command that I need to have installed? Or is it something that is supposed to be included in the MySQL package?

share|improve this question
Is there a reason why you're trying to build MySQL from source rather than just downloading a DMG archive from and using the installer? – Doug Harris Dec 1 '10 at 21:07
up vote 5 down vote accepted

configure is a script which checks to make sure your system has the proper dependencies in order to compile mysql from source.

This error message is simply saying the file named "configure" is not in the present directory (the . stands for the current directory). Make sure that there is a file named "configure" in the directory you are presently at before you try to do "./configure". You are most likely in the wrong directory or the package you downloaded is incomplete.

You will often also have to manually configure packages before compiling too. Make sure that there isn't a readme somewhere.

share|improve this answer
To add to the fact that the dot and the slash (./) is to explicitly state that the configure script is in the current directory, just writing configure doesn't work because the current path is not searched for executable commands, for security purposes. – Om Nom Nom Jun 23 '10 at 1:19

to add something to Daisetsu's anwer:

When downloading source try also checking for md5 hashes (md5 checksum). These strings are unique when applied to a file, much like a fingerprint. That way you can check if the file you downloaded is complete or not, and should be available on sites like MySQL's.

On unix based systems, that would be, through shell

myuser$ openssl md5 source.tar.gz

This will spare you from potential headaches due to corrupted file downloads.

While we are at that, maybe you'd take the easy road and download, configure and install MySQL through port:

myuser$ sudo port install mysql5

And that would be it. Application binaries should be available at /opt/local/bin.


share|improve this answer
Does not seem to address "My question is: what is the ./configure step trying to do?" – pnuts Dec 5 '12 at 23:13
"I am trying to install MySQL on snow leopard". Maybe it's just easier to install it via port. You can also try wikipedia for more extended definitions, if you want to. – misterte Dec 7 '12 at 1:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.