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

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: Richard Welty <rwelty(at)averillpark(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: library version problem, 7.3.2, php, redhat linux
Date: 2003-09-12 06:21:19
Message-ID: Pine.LNX.4.21.0309120716130.21912-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 11 Sep 2003, Richard Welty wrote:

> ok, i'm confused.
>
> i have two systems. one is redhat 7.1 (a server in colo, reasonably
> current), the other is 8.0 (my laptop). the server in colo is running
> postgresql 7.3.2 along with redhat's updated versions of apache and php for
> 7.1 (the php version is 4.1.2) on this server, php can access postgres
> without difficulty.
>
> my laptop is also running 7.3.2 along with the apache and php that go with
> RH 8.0. i found a need to bring up apache so i could test some php against
> postgresql, and was suprised to find that is failing (it'd been a while
> since i'd run the web server on this system). reviewing
> /var/log/httpd/error_log showed the following:
>
> [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. As for why it can't be found I can't really help. Could be PHP
configure/build, could be it wasn't installed. A little surprising perhaps but
then I know next to nothing about Redhat installations.

--
Nigel J. Andrews

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2003-09-12 06:46:14 Re: library version problem, 7.3.2, php, redhat linux
Previous Message 3rd. 2003-09-12 02:46:05 Re: [ADMIN] YOUR SITES SEARCH FEATURE DOES NOT WORK!