Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Trouble building MySQLdb-python load command 7 cmd unknown
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MikeM329  
View profile  
 More options Jul 27 2008, 5:32 pm
From: MikeM329 <Jonathan.J.Osbo...@gmail.com>
Date: Sun, 27 Jul 2008 14:32:52 -0700 (PDT)
Local: Sun, Jul 27 2008 5:32 pm
Subject: Trouble building MySQLdb-python load command 7 cmd unknown
I have spent the last day and a half googling and reading every blog
post on the topic of installing the MySQLdb-python for 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 with MySQL
I have MySQL version mysql-5.0.51b-osx10.5-x86
I'm trying to add MySQL-python-1.2.2.tar.gz
when i try to do the build using the command: python setup.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
not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: /usr/local/mysql/lib/
libmysqlclient_r.dylib load command 7 unknown cmd field
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/1D/1DIYDOE7GQ0pbcmmuCcESE++
+TI/-Tmp-//ccHh0Glq.out (No such file or directory)
error: command 'gcc' failed with exit status 1

Because my machine has an intel processor i believe i can ignore the
warnings about the ppc architecture and that the crux of my troubles
stem from the line that says"

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: /usr/local/mysql/lib/
libmysqlclient_r.dylib load command 7 unknown cmd field
collect2: ld returned 1 exit status

I have scoured many blogs and haven't found anyone with the same issue
or a solution.  Thanks in advance for any advice you can give.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MikeM329  
View profile  
 More options Jul 28 2008, 1:35 pm
From: MikeM329 <Jonathan.J.Osbo...@gmail.com>
Date: Mon, 28 Jul 2008 10:35:25 -0700 (PDT)
Local: Mon, Jul 28 2008 1:35 pm
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown
Since this post yesterday i have now tried using a different version
of MySQL (mysql-5.1.26-rc-osx10.5-x86), which did not work either.

On Jul 27, 2:32 pm, MikeM329 <Jonathan.J.Osbo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Tracey  
View profile  
 More options Jul 28 2008, 8:46 pm
From: "Karen Tracey" <kmtra...@gmail.com>
Date: Mon, 28 Jul 2008 20:46:33 -0400
Local: Mon, Jul 28 2008 8:46 pm
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown

On Mon, Jul 28, 2008 at 1:35 PM, MikeM329 <Jonathan.J.Osbo...@gmail.com>wrote:

> Since this post yesterday i have now tried using a different version
> of MySQL (mysql-5.1.26-rc-osx10.5-x86), which did not work either.

Sorry, I don't have any Macs so cannot help with the build problem.  I can't
help wondering,
though, if there is not a binary packaging of MySQLdb available somewhere
for your platform?  Surely not everyone who runs on a Mac builds MySQLdb
from source?

Karen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hellika  
View profile  
 More options Jul 29 2008, 2:14 am
From: Hellika <dan...@gmail.com>
Date: Mon, 28 Jul 2008 23:14:28 -0700 (PDT)
Local: Tues, Jul 29 2008 2:14 am
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown
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

On Jul 28, 6:32 am, MikeM329 <Jonathan.J.Osbo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hellika  
View profile  
 More options Jul 29 2008, 2:17 am
From: Hellika <dan...@gmail.com>
Date: Mon, 28 Jul 2008 23:17:13 -0700 (PDT)
Local: Tues, Jul 29 2008 2:17 am
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown
I think i screwed the first post up..

clean you build and then go here http://www.keningle.com/?p=11 and
try ;)

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MikeM329  
View profile  
 More options Aug 4 2008, 7:27 pm
From: MikeM329 <Jonathan.J.Osbo...@gmail.com>
Date: Mon, 4 Aug 2008 16:27:55 -0700 (PDT)
Local: Mon, Aug 4 2008 7:27 pm
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown
I solved the problem.

My version of xcode was 2.5 and i needed to upgrade to version 3.1.

Once i upgraded to xcode version 3.1 i then followed the instructions
@ http://www.kenigle.com/?p=11
and everything worked perfectly.

Thanks Hellika for your help!

On Jul 28, 11:17 pm, Hellika <dan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Jonah  
View profile  
 More options Aug 4 2008, 9:37 pm
From: Joshua Jonah <j...@joshuajonah.com>
Date: Mon, 04 Aug 2008 21:37:37 -0400
Local: Mon, Aug 4 2008 9:37 pm
Subject: Re: Trouble building MySQLdb-python load command 7 cmd unknown

In the future, just Fink it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »