Have you tried apt-get build-dep pypgsql ? It could be that you lacks the necessary packages to build it.
Tin Gherdanarra wrote: > Hallo, > > I'm trying to install pypgsql. However, I get syntax errors > while compiling the C sources. The following excerpt > from pgconnection.h looks a little funny to me: > > typedef struct { > PyObject_HEAD /* Here is the syntax error, and rightly so */ > PGconn *conn; > PyObject *host; > PyObject *port; > PyObject *db; > PyObject *options; > PyObject *tty; > PyObject *user; > PyObject *pass; > PyObject *bePID; > PyObject *socket; > PyObject *version; > PyObject *notices; > PyObject *cinfo; > int showQuery; > } PgConnection; > > > I don't know what PyObject_HEAD or PGconn is, > but if they are types, a syntax error is justified here: > > PyObject_HEAD /* Here is the syntax error */ > PGconn *conn; > > The setup.py-settings look good to me, I use debian sarge stable. > Installation of PostgreSQL ran without any problems. -- http://mail.python.org/mailman/listinfo/python-list