Обсуждение: perl dbi:pg
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
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
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