Re: library version problem, 7.3.2, php, redhat linux

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: Richard Welty <rwelty(at)averillpark(dot)net>, PostgreSQL general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: library version problem, 7.3.2, php, redhat linux
Date: 2003-09-12 06:46:14
Message-ID: 1063349173.19783.3.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2003-09-12 at 07:21, Nigel J. Andrews wrote:
> On Thu, 11 Sep 2003, Richard Welty wrote:
...
> > [Thu Sep 11 16:17:25 2003] [notice] caught SIGTERM, shutting down
> > PHP Warning: Unable to load dynamic library '/usr/lib/php4/pgsql.so'
> > - libpq.so.2: cannot open shared object file: No such file or directory
> > in Unknown on line 0
> >
> > this seems to clearly be a library versioning problem, as
> > "ls -l /usr/lib/libpq*" gives me
> >
> > -rw-r--r-- 1 root root 113800 Feb 5 2003 /usr/lib/libpq.a
> > lrwxrwxrwx 1 root root 12 Jun 26 14:19 /usr/lib/libpq.so -> libpq.so.3.0
> > lrwxrwxrwx 1 root root 12 Aug 1 08:09 /usr/lib/libpq.so.3 -> libpq.so.3.0
> > -rwxr-xr-x 1 root root 552967 Jul 28 18:30 /usr/lib/libpq.so.3.0
> > [root(at)skipper lib]#
>
> Well not quite. The complaint is that the PHP interface to PostgreSQL isn't
> found.

If I understand the error message correctly, it looks as though
/usr/lib/php4/pgsql.so is linked to libpq.so.2, which does not exist.
You need a version of php built against a more recent postgresql.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Let the wicked forsake his way, and the unrighteous
man his thoughts; and let him return unto the LORD,
and He will have mercy upon him; and to our God, for
he will abundantly pardon." Isaiah 55:7

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marek Lewczuk 2003-09-12 07:50:06 plPHP for windows
Previous Message Nigel J. Andrews 2003-09-12 06:21:19 Re: library version problem, 7.3.2, php, redhat linux