MySQLdb on Intel Mac
Hello Python and MySQL developers!
I've got an Intel-based Mac, installed the latest universal binary of MAMP (Apache + MySQL + PHP on Mac), and now I am having difficulties while installing MySQLdb 1.2.1 p2 related to the MySQL 5.0.19 which is included in the MAMP.
MAMP 1.3.1 is installed at /Applications/MAMP.
I downloaded the source of MySQL 5.0.19 and placed the included/header (*.h) files to /Applications/MAMP/Library/include/mysql.
Then I set the following settings in the site.cfg of the MySQLdb:
[compiler]
mysql_root: /Applications/MAMP/Library
library_dirs: %(mysql_root)s/lib/mysql
include_dirs: %(mysql_root)s/include/mysql
Then I build and install MySQLdb as it is told in the README of MySQLdb source. I get no errors at this time. But whenever I open Python shell and try to import _mysql or MySQLdb, I get the following error message:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/_mysql.so, 2): Symbol not found: _mysql_get_host_info
Referenced from: /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/_mysql.so
Expected in: dynamic lookup
Does anybody have any clues, where the problem is?
Subject
Written By
Posted
MySQLdb on Intel Mac
August 01, 2006 01:50AM
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.