From: Volkan YAZICI <volkan.yazici@gmail.com>
To: michael@softasap.net <michael@softasap.net>
Cc: pgsql-php@postgresql.org
Subject: Re: php5 and Pg 8.0.3 install from sources - problem
Date: Wed, 18 May 2005 14:46:31 +0300
Message-ID: <7104a7370505180446484395ea@mail.gmail.com> (raw)
In-Reply-To: <1116415634.428b269259a03@webmail.freedom2surf.net>
References: <1116415634.428b269259a03@webmail.freedom2surf.net>
Hi,
On 5/18/05, michael@softasap.net <michael@softasap.net> wrote:
> Environment I am running is as follows:
> OS: Fedora Core 3
> php5.0.4
> Pg 8.0.3
>
> 3) compiled from source postgre (more recent version)
> 4) compiled from source php (more recent version)
> 5) installed zend optimizer
>
> During step 4, namely when I did make install of php I have got an error of
> libpq.so.4 was not found. I copied then it to /usr/lib and make worked. But
> when I tried to start apache it has failed to start complaining on libpq.so.4
> something like "can't open shared segment: Permission Denied.".
In PostgreSQL 8.0.3 release libpq major version number is changed and
this caused libpq dependent programs to break. (Further information:
http://pgfoundry.org/pipermail/pgsqlrpms-hackers/2005-April/000197.html)
If I'd return to your situation, it's not so feasible to just move the
libpq.so.4 shared file as a solution. AFAIC, you should re-compile PHP
using correct --with-pgsql directory.
Just pass the --prefix parameter of PostgreSQL ./configure script to
PHP's ./configure script. For instance:
postgresql-8.0.3# export PGSQL_PREFIX=/usr
postgresql-8.0.3# ./configure --prefix=$PGSQL_PREFIX ...
...
php-5.0.4# ./configure ... --with-pgsql=$PGSQL_PREFIX
Hope this helps.
Regards.
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: volkan.yazici@gmail.com, michael@softasap.net
Subject: Re: php5 and Pg 8.0.3 install from sources - problem
In-Reply-To: <7104a7370505180446484395ea@mail.gmail.com>
References: <1116415634.428b269259a03@webmail.freedom2surf.net> <7104a7370505180446484395ea@mail.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