MySQL Forums
Forum List  »  Connector/Python

Re: Problems in building 1.2.2 on Mac OS 10.5
Posted by: Jesper Kückelhahn
Date: October 28, 2007 10:36AM

Hello

I've tried the mentioned method, but it doesn't seem to be working for me.
When i run 'python setup.py build', after editing the '_mysql.c' file, I get:

$python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.5-ppc-2.5
copying _mysql_exceptions.py -> build/lib.macosx-10.5-ppc-2.5
creating build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
creating build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.5-ppc-2.5
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -pipe -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.5-ppc-2.5/_mysql.o -Os -arch ppc -fno-common
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-ppc-2.5/_mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o build/lib.macosx-10.5-ppc-2.5/_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/folders/t8/t8u1GUW6GN8KS24sFWb-IU+++TI/-Tmp-//ccLjJt3J.out (No such file or directory)
error: command 'gcc' failed with exit status 1

Any else had that problem ?

Can it be because I'm using a PowerBook, and not an Intel Mac?


- Jesper

UPDATE:
Seems it was kind of the same solution as mentioned, except I had to do:
sudo cp /usr/local/mysql/lib/libmysqlclient* /usr/local/mysql/lib/mysql/
before I did a build, and then it works just fine.



Edited 1 time(s). Last edit at 10/29/2007 07:28AM by Jesper Kückelhahn.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problems in building 1.2.2 on Mac OS 10.5
October 28, 2007 10:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.