MySQL Forums
Forum List  »  Connector/Python

Re: MySQLdb on Intel Mac
Posted by: stefan sonnenberg
Date: August 01, 2006 03:36AM

Mac OS X has three environment variables possibly involved:

DYLD_LIBRARY_PATH
LD_LIBRARY_PATH
LIB_PATH

So, that the build works, makes me believe that the versions are
all ok.

But perhaps you need to set one/all of the to point to the MySQL
libraries.

In a console try:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/MAMP/Library/lib/mysql

and then try to import MySQLdb in python

perhaps you'll need to modify the other *_LIBRARY_PATH vars as well.

P.S.:
is the (mysql_root)s/ ... correct ?
then do this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/MAMP/Librarys/lib/mysql

Options: ReplyQuote


Subject
Written By
Posted
August 01, 2006 01:50AM
Re: MySQLdb on Intel Mac
August 01, 2006 03:36AM
April 06, 2007 04:21PM
January 29, 2008 12:08PM
June 12, 2007 08:23AM
June 13, 2007 09:23AM
August 06, 2007 07:03AM
September 06, 2007 05:51AM


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.