[Zope-dev] ZMySQLDA complile problem.

Victor.Zhai@ogilvy.com Victor.Zhai@ogilvy.com
Tue, 18 Jan 2000 13:06:12 +0800


Hi,all
   My platform is : Redhat 6.1 . In my project, I need to use the access
the MYSQL database.
First: I download the source of mysql: mysql-2.22.27.tar.gz for
http://www.tcx.se. Then I compiled it and make it can run like: Shell>
safe-mysqld &.

Second: I try the ZMySQLDA. But when I expended the ZMySQLDA to the folder
of /lib/python/Producs/, I tried to compile it.But then error occured:
    It seems that "&" cannot support by my compiler.
  Line 384:  tf = &(mysql_fetch_field_direct(res, i));
 ...
And MySQLmodule.so cannot be produced!.

And when I use MySQLdb expend in my Products directory.
When I want to build the MySQLdb it appeared like this:

Traceback (innermost last):
  File "build.py", line 14, in ?
    import MySQLdb
  File "MySQLdb.py", line 19, in ?
    from _mysql import *
ImportError: No module named _mysql
Please help me with this

Thanks a lot!.
  Vitor zhai.


"WorldSecure Server <ogilvy.com>" made the following
 annotations on 01/18/00 00:12:39
------------------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message.  If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind.  Opinions, conclusions and other information in this message that do not relate to the official business of the Ogilvy Group shall be understood as neither given nor endorsed by it.

==============================================================================