Things You Don’t Want To Do

So, you have to compile mysql to make sure that a crash has been fixed, otherwise you’re going to end up filing a bug… and we all know how much hassle that can be! Unfortunately you need a 64bit build (x86_64) on OS X… and you’ve never built mysql before.

This is what you need:

CFLAGS='-O3 -fno-common -arch x86_64' \
LDFLAGS='-O3 -arch x86_64' \
CXXFLAGS='-O3 -fno-common -arch x86_64' \
./configure -with-plugins=innobase
$ make
$ sudo make install
After that it’s all nice and easy. Up until then… not so much.

4 thoughts on “Things You Don’t Want To Do

    • the compiler writers probably felt bad about outright calling it a hack…

      > -hack x86_64

Wise words...

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s