Perl with Postrges under Cygwin

From: "Jim(dot)George" <jim(dot)george(at)blueyonder(dot)co(dot)uk>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Perl with Postrges under Cygwin
Date: 2002-06-15 08:17:59
Message-ID: Pine.CYG.4.44.0206150910000.2696-100000@gateway.GEORGE.CO.UK
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Hi folks,
I'm new to the list and need some help please.

I've been happily using Spamassassin for several months under
Cygwin (Linux under Win2K), and previously under Linux itself. So with
this confidence in the package I thought I'd improve things by linking in
the database option.

That's where my problem starts. I went to CPAN to find a DBI and
DBD for Postgres (had to grab the ODBC DBD as there wasn't one for
Postgres), trouble is that the install of the DBI pgsql relies on dynamic
libraries so I was hoping there was a binary port of these modules or
advice on installation?

Sorry I forgot to mention the most important part and that is that
the files libpq.so and libpq-fe.h do not appear to be present under my Cygwin
installation .

The next thing I tried was the perl DBI module Postgres-1.4, however
when compiling this I got the following errors.

gcc -c -I/usr/local/postgres95/include -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE Postgres.c
Postgres.xs: In function `XS_PGconnPtr_getline':
Postgres.xs:148: `sv_undef' undeclared (first use in this function)
Postgres.xs:148: (Each undeclared identifier is reported only once
Postgres.xs:148: for each function it appears in.)
Postgres.xs: In function `XS_QUERYPtr_fetchrow':
Postgres.xs:339: `sv_undef' undeclared (first use in this function)
make: *** [Postgres.o] Error 1

Can someone help me please to get Perl and Postgres working?

Thanks again,

Jim

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Gerrit P. Haase 2002-06-15 19:10:24 Re: Perl with Postrges under Cygwin
Previous Message Buyung Pamungkas 2002-06-14 18:59:50 Can't Install Postgres on Cygwin