tags:

views:

1144

answers:

5

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?

A: 

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

chmod 755 configure
wallyk
you'd actually get "permission denied" if you tried to execute that. He's probably just in the wrong directory, or perhaps needs to run autoreconf.
Nicholas Riley
@wallyk, yes I just verified the file with md5 and it matches...
John
@John: It matches what? My point is that ./configure won't work unless the file has execute permission. That what chmod 755 sets, along with read permission for everyone and write permission for the owner.
wallyk
Thanks Wallyk, I installed via Macports in the end, but my problem was that the file wasn't there, so I couldn't have set the permissions anyhow.
John
A: 

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

Pestilence
John
grep gives the only file with configure in the name within that folder as: .//support-files/binary-configure
John
What's the output of: find /YourUnpackedMySQLDir -name 'configure'
Pestilence
@Pestilence the output is nothing from that command. I tried another 2 tar files, but they also do not have the .configure file in them.
John
+1  A: 

Don't forget to

cd mysql-5.1.37

MindStalker
+1  A: 

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

ndim
+2  A: 

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.

Tom Bates
doh! many thanks :)
John