The problem is to do with the term uint. Mac is expecting unsigned..
so go into _mysql.c and change them and try again..
i recomend cleaning first..
$sudo python setup.py clean
then go here and follow instructions
http://www.keningle.com/?p=11
Cheers
> post on the topic of installing the MySQLdb-pythonfor use with
> django. At this point i have not found a solution for my challenge.
>
> I am installing django for development purposes on my MacBook Pro
> I successfully installed django and it seems to run just fine until i
> want to use it withMySQL
> I haveMySQLversionmysql-5.0.51b-osx10.5-x86
> I'm trying to addMySQL-python-1.2.2.tar.gz
> when i try to do the build using the command:pythonsetup.py build
> I get the following output:
>
> running build
> running build_py
> copying MySQLdb/release.py -> build/lib.macosx-10.3-i386-2.5/MySQLdb
> running build_ext
> building '_mysql' extension
> gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -
> bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/
> _mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -o build/
> lib.macosx-10.3-i386-2.5/_mysql.so
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: for architecture ppc
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning build/
> temp.macosx-10.3-i386-2.5/_mysql.o cputype (7, architecture i386) does
> not match cputype (18) for specified -arch flag: ppc (file not loaded)
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning /usr/local/mysql/lib/libmysqlclient_r.dylib cputype (7, architecture i386) does