title: Help installing MySQLdb for Python under Mac OS X
body: <p>I know this has been asked several times, but after a few hours of trying, there is no way to make this work.</p>
  
  <p>I've installed MySQL 32bits from a dmg file and MySQL-python-1.2.3.</p>
  
  <p>I followed <a href="http://friendlybit.com/tutorial/install-mysql-python-on-mac-os-x-leopard/" rel="nofollow">this steps</a>, but when I run <code>python setup.py build</code>, these errors come up:</p>
  
  <pre><code>running build
  running build_py
  copying MySQLdb/release.py -&gt; build/lib.macosx-10.6-fat-2.6/MySQLdb
  running build_ext
  building '_mysql' extension
  gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql-5.5.12-osx10.6-x86/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _mysql.c -o build/temp.macosx-10.6-fat-2.6/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch i386
  In file included from _mysql.c:36:
  /usr/local/mysql-5.5.12-osx10.6-x86/include/my_config.h:326:1: warning: "SIZEOF_SIZE_T" redefined
  In file included from /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:9,
                   from pymemcompat.h:10,
                   from _mysql.c:29:
  /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pymacconfig.h:39:1: warning: this is the location of the previous definition
  In file included from _mysql.c:36:
  /usr/local/mysql-5.5.12-osx10.6-x86/include/my_config.h:419:1: warning: "HAVE_WCSCOLL" redefined
  In file included from /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:8,
                   from pymemcompat.h:10,
                   from _mysql.c:29:
  /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyconfig.h:803:1: warning: this is the location of the previous definition
  _mysql.c:76: error: expected specifier-qualifier-list before ‘MYSQL’
  _mysql.c:90: error: expected specifier-qualifier-list before ‘MYSQL_RES’
  _mysql.c: In function ‘_mysql_Exception’:
  _mysql.c:120: warning: implicit declaration of function ‘mysql_errno’
  _mysql.c:120: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
  _mysql.c:132: error: ‘ER_DB_CREATE_EXISTS’ undeclared (first use in this function)
  _mysql.c:132: error: (Each undeclared identifier is reported only once
  </code></pre>
  
  <p>......</p>
  
  <p>I'd appreciate ANY help you can provide. Thanks!</p>