Re: MySQLdb on Intel Mac
I've noticed the same thing, the program looks for the dynamic library in a directory called /usr/local/mysql/lib/mysql/, when the actual directory is just /usr/local/mysql/lib/, without the addional mysql/.
I've filed a report with the developer of MySQLdb, but I believe the problem originates from the mysql side of things: the program mysql_config, that the setup.py of MySQLdb uses to find the location of the library reports this:
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -Os -arch i386 -fno-common]
--include [-I/usr/local/mysql/include]
--libs [-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm]
--libs_r [-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [5.0.45]
--libmysqld-libs [-L/usr/local/mysql/lib/mysql -lmysqld -lz -lm]
I'm pretty sure I've never touched this setting, and I don't know where to reset it, but the paths it shows are clearly wrong. This must be a mysql problem. I was using the installation disk image provided on mysql.com.
Any suggestions?
Subject
Written By
Posted
Re: MySQLdb on Intel Mac
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.