[ZWeb] Re: HELP in installing MySQLdb on a virtual server

Holger Lehmann lehmann@catworkx.de
Mon, 13 Nov 2000 10:26:32 +0100


To me it looks like you have different headers for mysql. It might be that 
the _mysqlmodule.c only compiles against an outdated version of mysql.
You might want to check the mysql headerfiles available (located under 
/usr/include/mysql/ on my box) if there are any matching symbols available. 
Also do check for uppercase and capitalized versions of the missing symbols. 

- Holger

Am Freitag, 10. November 2000 18:56 schrieben Sie:
> On Fri, 10 Nov 2000, Norman Khine wrote:
> > Hi,
> > I have just tried to build the MySQLdb and had followed the instructions
> > as in README file, unfortunatly my zope server isrunning under a virtual
> > server and I am getting errors when I run python build.py
> >
> > here is part of the message
> >
> > ./_mysqlmodule.c:1047: structure has no member named `connection'
> > ./_mysqlmodule.c: In function `_mysql_ConnectionObject_use_result':
> > ./_mysqlmodule.c:1057: `MYSQL_RES' undeclared (first use in this
> > function) ./_mysqlmodule.c:1057: `result' undeclared (first use in this
> > function) ./_mysqlmodule.c:1061: structure has no member named
> > `connection' ./_mysqlmodule.c: In function
> > `_mysql_ConnectionObject_dealloc': ./_mysqlmodule.c:1077: structure has
> > no member named `connection' ./_mysqlmodule.c: In function
> > `_mysql_ConnectionObject_repr':
> > ./_mysqlmodule.c:1091: structure has no member named `connection'
> > ./_mysqlmodule.c: In function `_mysql_ResultObject_data_seek':
> > ./_mysqlmodule.c:1104: structure has no member named `result'
> > ./_mysqlmodule.c: In function `_mysql_ResultObject_dealloc':
> > ./_mysqlmodule.c:1115: structure has no member named `result'
> > *** Error code 1
> >
> > Stop in
> > /usr/home/userhome/usr/local/zope/2-2-2/lib/python/Products/MySQLdb-0.1.2
> >.
>
> 0.1.2 is very old. However it should compile. I suspect you do not have
> the MySQL development tools (C headers and libraries) installed.

-- 
-----------------------------------
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel : +49 40 890 646-0
Info: 0700 catWorkX
    ( 0700 22 89 67 59 )
Fax : +49 40 890 646-66
mailto:lehmann@catworkx.de
http://www.catworkx.de
http://www.catbridge.de