Thread: perl dbi:pg

perl dbi:pg

From
"Joseph"
Date:
Any one care to share what it takes to get dbd:pg working?

I got the pgsql_perl5-1.9.0.tar.gz from CPAN.
I set the variables POSTGRES_LIB=/usr/local/pgsql/lib/libpq.so
and POSTGRES_INCLUDE=/path_to_/libpq-fe.h
However then it complains that it can't find postgres_ext.h

In file included from Pg.xs:16:
/install/postgresql/postgresql-snapshot/src/interfaces/libpq/libpq-fe.h:27:
postgres_ext.h: No such file or directory
make: *** [Pg.o] Error 1


respectfully,
Joseph


Re: perl dbi:pg

From
newsreader@mediaone.net
Date:
You got the wrong file if you want
dbd:pg

It's called
    DBD-Pg-0.95.tar.gz
for my version

Also those environment variables should
be set to directory.

So you need LIB=.../lib
etc


On Tue, Apr 10, 2001 at 06:29:15AM -0400, Joseph wrote:
> Any one care to share what it takes to get dbd:pg working?
>
> I got the pgsql_perl5-1.9.0.tar.gz from CPAN.
> I set the variables POSTGRES_LIB=/usr/local/pgsql/lib/libpq.so
> and POSTGRES_INCLUDE=/path_to_/libpq-fe.h
> However then it complains that it can't find postgres_ext.h
>
> In file included from Pg.xs:16:
> /install/postgresql/postgresql-snapshot/src/interfaces/libpq/libpq-fe.h:27:
> postgres_ext.h: No such file or directory
> make: *** [Pg.o] Error 1
>
>
> respectfully,
> Joseph
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl

Re: perl dbi:pg

From
"Brett W. McCoy"
Date:
On Tue, 10 Apr 2001, Joseph wrote:

> I got the pgsql_perl5-1.9.0.tar.gz from CPAN.
> I set the variables POSTGRES_LIB=/usr/local/pgsql/lib/libpq.so
> and POSTGRES_INCLUDE=/path_to_/libpq-fe.h
> However then it complains that it can't find postgres_ext.h

POSTGRES_LIB and POSTGRES_INCLUDE must point to directories, not files.

Keep in mind that this is NOT DBD::Pg -- you are using the native Perl
interface.  DBD::Pg is a different module on CPAN.

-- Brett
                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Writing about music is like dancing about architecture.
        -- Frank Zappa