Build the extension. Change to the /src directory of your ZSolidDA product directory
and issue the following commands:
make -f Makefile.pre.in boot
make
Note that if the Python interpreter that will be used to run
Zope is not run with the command python
, then you must
supply the command used to run Python as an option on the
first make command. For example, if you run Python with the
command python1.5.1
, then use:
make -f Makefile.pre.in boot PYTHON=python1.5.1
This should create the file MySQLmodule.so in your src directory.
This file is a dynamically-linked library. Some versions of
Unix (e.g. HP/UX) use a different suffix for dynamically-linked
libraries. If errors occur when trying to build the extension, you
may need to modify the Setup file to ensure that the correct MySQL
include and lib directory options are being passed to the compiler.
Next, start Python and type "import MySQL", to make sure you can
import the module without problems. If Python is unable to import
the module, you may need to try rebuilding the module, changing the
the switch "-lm" to "-lgcc" in the Setup file.
Finally, copy the output file MySQLmodule.so up one directory into
your ZMySQLDA product directory and restart your Zope installation
to complete the product installation.