Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8012 closed (invalid)

MySQLdb build failure

Reported by: Jonathan Osborne <jono@…> Owned by: nobody
Component: Tools Version: 0.96
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

I'm at my wit's end. I have been trying to add the required MySQL-python-1.2.2 to MySQL so i can use the database with django but the i cannot get the command: python setup.py build , to work. I posted my problem in the Django Users group but didn't get any response. Here is the error output i am getting.

$ python setup.py build
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 -lmygcc -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/mysqllib/libmysqlclient_r.dylib usrcputype (7,/libexec/ architecture gcc/i686i386) does-apple- not matchdarwin8/4.0.1 cputype (/ld: 18) forfor architecture specified -i386
/arch flag: usr/libexecppc (file/gcc/i686 not loaded-apple-)
/usrdarwin8/4.0.1
libexec/gcc/ld: /powerpc-apple-usr/local/mysql/lib/libmysqlclient_r.dylib load command 8 unknown cmd field
darwin8/4.0.1/ld: warningcollect2: /usr/ld returned 1 exit statuslocal/
mysql/lib/libmygcc.a archive's cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (can't load from it)
lipo: can't open input file: /var/folders/1D/1DIYDOE7GQ0pbcmmuCcESE+++TI/-Tmp-ccCeFF5W.out (No such file or directory)
error: command 'gcc' failed with exit status 1

I have read countless blogs posts and discussions but haven't found a solution.

I am currently using a macbook pro with an intel duo core processor
I have running MySQL version 5.0 although i have tried 5.1 and that didn't fix the problem.

Please help!

Jon

Change History (2)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: newclosed

Please don't post support questions to Trac. We have the django-users list for that purpose and somebody may be able to help you there.

comment:2 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top