John
John

Reputation: 5249

-bash: ./configure: No such file or directory - MySQL install on Mac OS X 10.6

I'm trying to install MySQL on Mac OS X 10.6. After I download MySQL and untar with tar xzvf mysql-5.1.37.tar.gz I then try and run this configure line:

./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-shared --with-plugins=innobase

I get the error

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

I thought that configure should be a file in directory mysql, but it is not there. Am I correct, or is configure something else?

Upvotes: 5

Views: 25729

Answers (6)

Kevin Branigan
Kevin Branigan

Reputation: 223

I was having a similar problem (mysql 5.5.23), which seems to be caused by the fact that they decided to switch to using cmake from autotools.

MySQL :: MySQL Internals Manual :: 4.6.6 ./configure Emulation

Upvotes: 4

Tom Bates
Tom Bates

Reputation: 3222

You've downloaded the binary version, not the source.

This is the reason that you're getting the config error. Go here:

http://forums.mysql.com/read.php?117,295428,295493#msg-295493

for the correct mysql version to compile from source.

Upvotes: 8

ndim
ndim

Reputation: 37885

Did you actually cd mysql-5.1.37 before trying to run ./configure?

Upvotes: 2

MindStalker
MindStalker

Reputation: 14864

Don't forget to

cd mysql-5.1.37

Upvotes: 1

pestilence669
pestilence669

Reputation: 5699

The file should be there. It's in the archived version I just downloaded. You might want to grab another copy and try again.

Upvotes: 0

wallyk
wallyk

Reputation: 57794

Presumably, you verified the file is there, right? You might have to set the execute bit:

chmod 755 configure

Upvotes: 0

Related Questions