[Zope] Trying to Install ZMySQLDA

Maarten Slaets maarten.slaets@kpnqwest.com
Mon, 15 Nov 1999 17:08:53 +0100


hi robert

Robert Canary wrote:
> 
> Hi agin,
> 
> I am agin trying to install the ZMySQLDA. I upragded my Zope to the
> 2.0.1 from the rpm on the RedHat 6.1 distro and I am runing
> python-1.5.2.  Now according to the instructions from the ZmySQLDA I am
> suppose to un tar this from the top directory of the Zope. If I go to
> /usr/lib/python1.5/site-packages/ and unpack everything it ends up with

untarring of ZMySQLDA needs to be done in the zope dir (/usr/local/zope, or
...) not the python dir
then you need to patch it to use MySQLdb (by adustman)

> a /usr/lib/python1.5/site-packages/lib/python/Products/ZMySQLDA/{all the
> tared files} + {a src directory to build the mysqlmodule}. However, this
> is obviously not right.  The only "Products" I found was under the
> "ZopeWorld" directory.  However, manually place the contents of the
> tarball's "Product" directory in this directory did not help iether.  No
> matter which way I go I get this error when I do make in the
> ZMySQLDA/src directory.
> 
> This is the output.
> 
> [root@mchn3 src]# make sharedmods
> gcc -fPIC  -I/usr/include/mysql -g -O2 -I/usr/include/python1.5
> -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c
> ./MySQLmodule.c: In function `pythonify_row':
> ./MySQLmodule.c:238: warning: assignment from incompatible pointer type
> ./MySQLmodule.c: In function `pythonify_res_fields':
> ./MySQLmodule.c:384: invalid lvalue in unary `&'
> ./MySQLmodule.c: In function `STH_fetchdict':
> ./MySQLmodule.c:1125: invalid lvalue in unary `&'
> ./MySQLmodule.c:1147: invalid lvalue in unary `&'
> make: *** [MySQLmodule.o] Error 1
> 
> I really need some help with this one, any volunteers?
> 
> thanks in advance ;-)
> --
> robert canary
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
>           No cross posts or HTML encoding!
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Maarten Slaets
Web Developer
KPNQwest Belgium
http://www.fonky.com/vcard/MaartenSlaets/