Skip navigation links

MySQL Forums :: Connector/Python :: Problems in building 1.2.2 on Mac OS 10.5


Advanced Search

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
Problems in building 1.2.2 on Mac OS 10.5 Mr Stone 09/26/2007 02:12PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Jeremy Knope 10/27/2007 12:41PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Oliver Beattie 10/27/2007 02:35PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Oliver Beattie 10/27/2007 02:44PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Michal Kox 10/27/2007 04:06PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Geert Dekkers 03/13/2008 02:05AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Joseph Gilbert 07/08/2008 08:50AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Jone Black 03/28/2009 09:07AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Brent Nash 01/29/2008 12:12PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Patrick Crews 04/12/2008 04:10PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Jesper Kückelhahn 10/28/2007 10:36AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Jason Evans 11/27/2007 12:25AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Andy Fundinger 12/11/2007 02:48PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Bjarni Vilhjalmsson 02/25/2008 12:40PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Ches Martin 07/20/2008 11:40PM
Re: Problems in building 1.2.2 on Mac OS 10.5 Maarten Idema 09/29/2008 05:30AM
Re: Problems in building 1.2.2 on Mac OS 10.5 M Hess 12/29/2008 02:09AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Eva Heinz 11/24/2008 04:24AM
Re: Problems in building 1.2.2 on Mac OS 10.5 Jose Muanis Castro 06/13/2009 05:55PM


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.