installing MySQLdb module
zaphotbretzel at yahoo.com
zaphotbretzel at yahoo.com
Mon May 19 11:06:47 EDT 2008
Hi Rafael,
> I googled around and people say you need the "-dev" package of mysql
> in order to have the C headers...where can you download this for mac
> os?
> PS I am running XAMPP (http://www.keitr.com/tutorials/xampp) if that
> changes anything
Ok, here my solution to the problem (Mac OS X 10.4, Xampp and MySQLdb)
1) install Xcode from apple (for gcc, need free account for that,
http://developer.apple.com/)
2) get Mac binary tar from MySQL (http://dev.mysql.com/downloads/mysql/
5.0.html#macosx)
3) edit site.cfg (mysql_config = /Applications/xampp/xamppfiles/bin/
mysql_config)
4) copy include dir from MySQL package to /Applications/xampp/
xamppfiles/include/mysql
I bet downloading the same version from MySQL as installed from Xampp
could help.
And yes, you only need the include folder from the MySQL binary
package, do not install it.
Peace,
Zaphot
More information about the Python-list
mailing list