Re: DBD::Pg 2.10.7 compile failed on RH4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tapio(dot)Niva(at)tietoenator(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DBD::Pg 2.10.7 compile failed on RH4
Date: 2008-10-07 12:26:03
Message-ID: 12505.1223382363@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<Tapio(dot)Niva(at)tietoenator(dot)com> writes:
> we have 32-bit PostgreSQL version 8.3.4 on 64-bit RHEL4 , Postgres
> itself is working as expected.
> ...
> Our problem is that DBD::Pg version 2.10.7 will not compile ,

> LD_RUN_PATH="/usr/lib" gcc -shared -O2 Pg.o dbdimp.o quote.o types.o
> -o blib/arch/auto/DBD/Pg/Pg.so \
> -L/usr/lib -lpq -lm \
> /usr/bin/ld: skipping incompatible /usr/lib/libpq.so when searching for
> -lpq

What it looks like to me is that you've got a 64-bit perl build ("file"
on the perl executable would be a good way to confirm that). If so,
you're going to need a 64-bit version of libpq.so to link into it.

There's no reason a 64-bit libpq wouldn't interoperate with a 32-bit
server, so just installing the 64-bit postgresql-libs RPM alongside what
you have ought to be sufficient.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-10-07 12:50:00 Re: Installation on CentOS 5.2 (readline trouble)
Previous Message Albe Laurenz 2008-10-07 12:03:40 Re: DBD::Pg 2.10.7 compile failed on RH4