Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 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: UI/UX:

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

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.