[Pythonmac-SIG] Error installing mysql-python 1.2.2 on mac os x 10.4.9
Lyndsey Ferguson
lyndsey.ferguson at gmail.com
Tue Oct 30 18:36:17 CET 2007
Hi Alex,
I'm responding to your question on the list so that everyone can
benefit from our experiences:
On Oct 30, 2007, at 1:29 PM, Alessandro Censoni wrote:
> >ImportError: dlopen(/Users/alessandrocensoni/.python-eggs/
> MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, 2):
> Library not loaded: >/usr/local/mysql/lib/mysql/libmysqlclient_r.
> 15.dylib
> >Referenced from: /Users/alessandrocensoni/.python-eggs/
> MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so
> >Reason: image not found
>
> And I don't know what to do!!!Now I'm looking for other people who
> had the same problem.I don't know you had it.
The problem is that the build system is trying to build a Universal
Binary version of the library and you need to install the Universal
Binary version of MySQL along with the libraries:
The line:
"/Users/alessandrocensoni/.python-eggs/MySQL_python-1.2.2-py2.5-
macosx-10.3-fat.egg-tmp/_mysql.so, 2): Library not loaded: >/usr/local/
mysql/lib/mysql/libmysqlclient_r.15.dylib"
Is a hint, if you go to that directory, you'll see that running the
command line tool "lipo" will tell you that the library
libmysqlclient_r.15.dylib is not Universal.
You need to get the Universal Binary version of the MySQL library from
the www.mysql.org website. Get the UB version and install it --
removing the old version of MySQL.
Sorry I neglected to mention that, there are quite a few steps
involved, it really is a pain in the butt.
Good luck!
Lyndsey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20071030/3f978859/attachment.htm
More information about the Pythonmac-SIG
mailing list