[Pythonmac-SIG] Install
Robert Anton Patterson
robertanton at aapglobal.com
Wed Jul 12 00:14:03 CEST 2006
Dear
Hi I'm trying to install MySQLdb-1.2.1 on Mac OS X and would appreciate
anyone's help on the matter.
I am able to access MySQL directly through the terminal, PHP, and PHPMyAdmin
But when I go to install MYSQL-python via
Python setup.py build:
I get the following error:
[Kolkata:~/desktop/mysql-python] anton% python setup.py build
running build
running build_py
copying MySQLdb/release.py ->
build/lib.darwin-8.6.0-Power_Macintosh-2.3/MySQLdb
running build_ext
building '_mysql' extension
gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup
build/temp.darwin-8.6.0-Power_Macintosh-2.3/_mysql.o -L/usr/local/mysql/lib
-lmysqlclient_r -lz -lm -o
build/lib.darwin-8.6.0-Power_Macintosh-2.3/_mysql.so
ld: warning table of contents of library:
/usr/local/mysql/lib/libmysqlclient_r.a not sorted slower link editing will
result (use the ranlib(1) -s option)
ld: /usr/local/mysql/lib/libmysqlclient_r.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (355) in section (__TEXT,__text)
....
....
ld: /usr/local/mysql/lib/libmysqlclient_r.a(yassl_int.o) stray relocation
PPC_RELOC_PAIR entry (671) in section (__TEXT,__text)
error: command 'gcc' failed with exit status 1
Full error log downloadable here >
http://www.aedeas.net/dropbox/mysqldb-errorlog.txt
I thought I didn't have GCC.
But I do;
[Kolkata:~/desktop/mysql-python] anton% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1640)
Any clues?
Thanks,
Robert
The following might be of use but has not helped me -
[BioPython] MySQLdb for Mac OS X
http://lists.open-bio.org/pipermail/biopython/2004-January/001785.html
More information about the Pythonmac-SIG
mailing list