Re: DBI::Pg problems

From: Richard Poole <richard(dot)poole(at)vi(dot)net>
To: Chris Hayner <hayner80(at)astro(dot)ocis(dot)temple(dot)edu>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: DBI::Pg problems
Date: 2001-06-07 16:49:00
Message-ID: 20010607174900.B22466@office.vi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Wed, Jun 06, 2001 at 08:01:14AM -0400, Chris Hayner wrote:
> Good Morning All,
>
> I am having all kinds of problems with the DBI::Pg module. Installing
> (mistakenly) as root, everything works fine. However, when I redo the
> install as a normal user as per the instructions i read a little late, I
> get the following error message.
>
>
> ld.so.1: perl: fatal: relocation error: file
> /usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/DBD/Pg/Pg.so:
> symbol PQconnectdb: referenced symbol not found
>
> Any assistance would be greatly appreciated.

From the README to 0.96 or later:

> If you get an error message like:
> perl: error while loading shared libraries:
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/Pg/Pg.so: undefined
> symbol: PQconnectdb
> when you call DBI->connect, then your libpq.so was probably not seen at
> build-time. This should have caused 'make test' to fail; did you really
> run it and look at the output? Check the setting of POSTGRES_LIB and
> recompile DBD-Pg.

That's off a Linux box but you seem to have the Solaris equivalent.
Quick reminder:

1 Set POSTGRES_INCLUDE and POSTGRES_LIB
2 perl Makefile.pl
3 make
4 make test
5 su
6 make install

Richard

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Barry Lind 2001-06-07 19:33:22 Re: Dabase support for UTF, UNICODE?
Previous Message Ilan Fait 2001-06-07 13:52:04 help