[Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

Hugo Ramos ramosh at gmail.com
Tue Feb 19 21:55:23 EST 2008


Yellow ppl,

I'm having a problem I didn't have in OS X 10.4 (tiger)...

When compiling MySQL-python-1.2.2 on OS X 10.5 (leopard) I get a very
annoying error I'm not being able to solve.
I've tried moving, copying and linking libraries around but nothing
seems to work.
Anyone seen this before? Andy? :-)

Thanks

=====================
- Mac OS X 10.5.2 (intel)
- MySQL 5.0.51a (compiled from source)
- Python 2.4.4
- MySQL-python-1.2.2
=====================
$ python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.4/MySQLdb
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.3-fat-2.4
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0)
-D__version__=1.2.2 -I/usr/local/mysql/include/mysql
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
_mysql.c -o build/temp.macosx-10.3-fat-2.4/_mysql.o
gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.4/_mysql.o
-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o
build/lib.macosx-10.3-fat-2.4/_mysql.so
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccR04Uyn.out (No such file or
directory)
error: command 'gcc' failed with exit status 1
=====================


-- 
Hugo Ramos - ramosh at gmail.com
IT Project Manager


More information about the Zope mailing list