Perl connection to Postgres?

Started by R Talbotover 24 years ago2 messagesgeneral
Jump to latest
#1R Talbot
rjtalbo@attglobal.net

I have compiled and installed
PostgreSQL 7.1.2
DBD-Pg-1.01.tar.gz
DBI-1.20.tar.gz

I am running perl, version 5.005_03 ...

When I ran ./configure on PostgreSQL 7.1.2 I did so --with-perl
but make reported It could not install because Perl libraries
were not shared.. I assume it wanted me to have the Perl static
installed and linked.. Right or wrong??

So I installed the above DBD and DBI after the PostgreSQL install..

Question ?? Do I have to do anything else to Perl and PostgreSQL
to work together.. Such as another Perl Library or a Link..??

Bob T

#2Keary Suska
hierophant@pcisys.net
In reply to: R Talbot (#1)
Re: Perl connection to Postgres?

IIRC, compiling --with-perl compiles the provided Perl module for accessing
Postgres, which is not related to DBI, and possibly the Perl procedural
language support. The compile is probably looking for libperl.so, but you
don't don't need it if you are not planning to use either of the above. If
you intend to just use DBI, installing DBI and DBD::Pg is sufficient. You
may have to test the DBD::Pg install to make sure Perl can find the Postgres
loadable object.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Show quoted text

From: R Talbot <rjtalbo@attglobal.net>
Date: Sun, 30 Sep 2001 22:17:38 -0400
To: pgsql-general@postgresql.org
Subject: [GENERAL] Perl connection to Postgres?

I have compiled and installed
PostgreSQL 7.1.2
DBD-Pg-1.01.tar.gz
DBI-1.20.tar.gz

I am running perl, version 5.005_03 ...

When I ran ./configure on PostgreSQL 7.1.2 I did so --with-perl
but make reported It could not install because Perl libraries
were not shared.. I assume it wanted me to have the Perl static
installed and linked.. Right or wrong??

So I installed the above DBD and DBI after the PostgreSQL install..

Question ?? Do I have to do anything else to Perl and PostgreSQL
to work together.. Such as another Perl Library or a Link..??

Bob T

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org