[Pythonmac-SIG] MySQLdb module installation, no lib?
calvin at xmission.com
Tue Jul 22 00:03:12 EDT 2003
okay, verify that /usr/local/mysql exists (ls /usr/local)
then you'll want to modify the setup.py in the MySQLdb directory that you
installed. Here are the instructions from my install_procedure notes
include_dirs = [
library_dirs = [
elif sys.platform[:6] == "darwin": # Mac OS X
here are the basic instructions:
$ tar xfz MySQL-python-0.9.2.tar.gz
$ cd MySQL-python-0.9.2
--modify setup.py as above--
$ python setup.py build
$ python setup.py install
I keep these notes running every time a do an install, and I keep getting
better at including stuff and making them readable...mostly because I have
forgotten the exact things i did the last time i did a new system install.
You can find my notes here:
They include notes on installing pil, mysqldb, setting up apache to use
python and other little bits I have to do every time I lose a disk or a
clean install. some are copied from documentation, some is
my own stuff, and some is emails from Bob Ippolito. There is a simple cgi
included that tests that cgi works too.
any questions let me know.
More information about the Pythonmac-SIG