Bug #23146 No Mac OS X 10.5 x86 64 bit binary version
Submitted: 10 Oct 2006 17:09 Modified: 17 Nov 2008 21:17
Reporter: Lance Bland Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version: OS:MacOS (Mac OS X)
Assigned to: CPU Architecture:Any
Tags: 64-bit, Intel, mac

[10 Oct 2006 17:09] Lance Bland
Description:
The download page lists:
Mac OS X 10.4 (x86)
Mac OS X 10.4, (PowerPC, 64-bit)
but not:
Mac OS X 10.4 (x86, 64-bit)

How to repeat:
See
Mac OS X downloads:
http://www.mysql.org/downloads/mysql/5.0.html

Suggested fix:
Provide Mac OS X 10.4 (x86, 64-bit) MySQL server distribution dmg.
OR, if true:
State that x86 is 64-bit
[11 Oct 2006 13:27] Valeriy Kravchuk
Thank you for a reasonable feature request. Maybe later, for 10.5, but it should be created.
[27 Sep 2007 18:32] Max Matson
Is this still targeted for 10.5, or are there any updates as to when this may happen?

Any updates would be greatly appreciated.
[18 Oct 2007 14:06] Caio James
Just would like to inquire as to the status of this feature request. Can we expect to see this in the 10.5 build?

Thanks!
[18 Oct 2007 14:34] Lance Bland
I edited my original bug report because I'm no longer interested in Mac OS X 10.4 64-bit version. I am interested in "Mac OS X 10.5 (Leopard) Client" 64-bit version, standalone, i.e.: Not bundled with "Mac OS X 10.5 (Leopard) Server".
[6 Nov 2007 14:14] Per Hallström
Any updates on this issue?
[6 Nov 2007 15:35] Lance Bland
hi-

I would also like to make a request for MySQL version 5.1 for Mac OS X 10.5 Intel 64 bit. Hopefully by the time this feature request gets fulfilled MySQL V5.1 will be out of prerelease.
[5 Dec 2007 19:45] Gary Woodcock
I'm also extremely interested in a MySQL 5.1.x 64-bit x86 binary for Mac OS X...  Can anyone comment on when this will be available?
[11 Dec 2007 20:34] Per Hallström
It would be very appreciated to receive some kind of comment from MySQL on this request.
[12 Jan 2008 4:48] David Gatwood
The 10.4 version is damn near useless in 10.5 because Apache is built 4-way and runs out of the 64-bit slice (ppc64 or x86_64) on any CPUs that support it.  That means that your latest binary release won't work in any useful capacity on -any- Mac sold since October of last year!!!!!

Please fix this.  The current state of affairs is just plain sad.  According to Marc Liyanage, you can build it (on 10.5) for 10.5 as follows:

MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
LDFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
CXXFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
./configure --disable-dependency-tracking --prefix=/usr/local/mysql
make; make install
[12 Jan 2008 18:15] Max Matson
FYI, it seems that 10.5 server includes a universal build which shows 64bit x86. I'd still like mysql package and support a 64bit x86 version for 10.5.
[23 Feb 2008 16:22] Kieran Kelleher
Please provide OS X Leopard 10.5 64bit binary install, or at least provide the configure and make options for building from source.
[15 Jul 2008 9:29] steven alyari
Just as a workaround, I got x86_64 to compile from mysql source with the following commands:

MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS='-arch x86_64' \
LDFLAGS='-arch x86_64' \
CXXFLAGS='-arch x86_64' \
./configure --disable-dependency-tracking --prefix=/usr/local/mysql

The flag --disable-dependency-tracking just speeds up one-time builds (i.e. where you are not modifying source code and re-compiling).

The main thing here is that "-arch x86_64" needs to be passed to the compiler (C and C++) and linker to get a 64-bit build.

One thing make sure you (re)move /usr/local/mysql before installing.

Anyway, hopes this helps.  I haven't played with it, so can't tell you how well it's working, but I do see >3GB allocated in the VM in Activity Monitor, after setting "innodb_buffer_pool_size = 3000M", and the Kind column says Intel 64-bit, which it did not say previously.  Definitely cool.
[17 Nov 2008 21:17] Trudy Pelzer
These binaries are included in both MySQL 5.0 and 5.1.
[18 Nov 2008 10:37] Joerg Bruehe
Just for the record:

- For MySQL 5.0, there are packages for OS X 10.5 on x86_64
  starting from version 5.0.51 (Nov/Dec 2007) including the rebuilds 
  5.0.51a and 5.0.51b (Jan + Apr 2008), and for all versions since.

- For MySQL 5.1, there are packages for OS X 10.5 on x86_64
  starting from version 5.1.23rc (Jan 2008), and for all versions since.