Error Building PyPgSQL

Rod MacNeil rmacneil at interactdirect.com
Mon Jul 9 16:06:00 EDT 2001


I have version 1.2 from sourceforge, it doesn't mention using distutils or
have a setup.py script.
Have I got the latest?
I'm new to distutils, am I missing something basic?

Rod MacNeil

"Gerhard Häring" <gerhard.nospam at bigfoot.de> wrote in message
news:slrn9kjihk.pj.gerhard.nospam at lilith.hqd-internal...
> On Mon, 9 Jul 2001 09:13:36 -0400, Rod MacNeil wrote:
> >Hello,
> >
> >I'm trying to build PyPgSQL on a RH7 box with
> >Python 1.5 and postgres 7.0 and gcc-2.96-54.
> >I left the Setup.in file as it shipped because it looked
> >correct to me.
> >I get the following when I run make.
> >
> >gcc -fPIC -I/usr/local/pgsql/include -g -02 -
> >I/usr/include/python1.5 -I/usr/include/python1.5 -
> >DHAVE_CONFIG_H -c ./libpqmodule.c
> >./libpqmodule.c: In function `PgConnection_New':
> >./libpqmodule.c:196: parse error before `PgConnection'
> >./libpqmodule.c: In function `PgResult_New':
> >./libpqmodule.c:282: parse error before `PgResult'
> >./libpqmodule.c: In function `PgLargeObject_New':
> >./libpqmodule.c:358: parse error before `PgLargeObject'
> >./libpqmodule.c: In function `PgNotify_New':
> >./libpqmodule.c:548: parse error before `PgNotify'
> >make: *** [libpqmodule.o] Error 1
> >
> >This looks like a compiler error to me but I'm not a C programmer.
> >The four lines of code appear to be
> >using the same syntax, is this a syntax error or
> >possibly a compiler version issue?
> >
> >Has anyone else had this problem or know of a solution?
>
> The latest release uses distutils and it works fine. I think you should
use
> this one (edit paths in setup.py, then "python setup.py build" then
"python
> setup.py install").
>
> Gerhard
> --
> mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
> web:    http://highqualdev.com              public key at homepage
> public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
> reduce(lambda x,y:x+y,map(lambda
x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))





More information about the Python-list mailing list