From: Chris <dmagick@gmail.com>
To: L. Zhao <lzhao86@yahoo.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Question on libpq.so
Date: Fri, 09 Jan 2009 13:45:33 +1100
Message-ID: <4966BA4D.9050304@gmail.com> (raw)
In-Reply-To: <230332.37017.qm@web31304.mail.mud.yahoo.com>
References: <230332.37017.qm@web31304.mail.mud.yahoo.com>
L. Zhao wrote:
> We are in the process of upgrading our postgres database from 7.4 to 8.2
> on Redhat ES4 server. Postgresql uses libpq.so.5.0, while libpq.so.3
> was initially installed and is needed by php. I did the postgresql
> 8.2.10 installation without dependency:
> rpm -Uvh --nodeps postgresql-*.rpm
Was there a reason why you had to use --nodeps? Exactly which rpms did
you install?
> Then I try to recompile PHP 4.3.9 rpm, hoping that it will point to the
> new postgres so. The compilation failed with the error:
> Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3:
> cannot open shared object file: No such file or directory in Unknown on
> line 0
As Alan pointed out, this is a runtime error not a compile error. How
did you rebuild the php 4.3.9 rpm? Any errors during that process?
> Can PHP 4.3 work with postgresql 8.2, and how can I point PHP rpm to use
> libpq.so.5? Thanks.
Once you have it compiled properly it should work fine.
--
Postgresql & php tutorials
http://www.designmagick.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: dmagick@gmail.com, lzhao86@yahoo.com
Subject: Re: Question on libpq.so
In-Reply-To: <4966BA4D.9050304@gmail.com>
References: <230332.37017.qm@web31304.mail.mud.yahoo.com> <4966BA4D.9050304@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox