On Oct 31, 6:57 am, crudolph <[EMAIL PROTECTED]> wrote: > Yeah - I downloaded fromhttp://sourceforge.net/projects/mysql-python, > unzipped and ran python setup.py build and then install. > > Under Leopard (10.5) apache2 is 4-way, so it is running in 64-bit > mode. I haven't been able to figure out how to pass the right > architecture flags through setup.py
Reading this again, what do you get if run run: file /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib The problem is not necessarily passing correct arch flags through setup.py but that the MySQL client library doesn't contain all architectures and needs to be recompiled. Graham > cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- > madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes - > DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -pipe - > Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/mysql/ > include -I/System/Library/Frameworks/Python.framework/Versions/2.5/ > include/python2.5 -c _mysql.c -o build/temp.macosx-10.5-i386-2.5/ > _mysql.o -Os -arch i386 -fno-common > gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc - > arch ppc64 -arch x86_64 build/temp.macosx-10.5-i386-2.5/_mysql.o -L/ > usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o build/ > lib.macosx-10.5-i386-2.5/_mysql.so > ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not > of required architecture > ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file > is not of required architecture > ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not > of required architecture > ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file > is not of required architecture > ld: warning in build/temp.macosx-10.5-i386-2.5/_mysql.o, file is not > of required architecture > ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file > is not of required architecture --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---