X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3BFC25283C for ; Wed, 18 May 2005 08:46:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 38035-10 for ; Wed, 18 May 2005 11:46:29 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id BF4B652822 for ; Wed, 18 May 2005 08:46:27 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so163134wri for ; Wed, 18 May 2005 04:46:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mHCcJqpkW1cPOjRkgBxy3oLzEzeAuS9cXFGR6NQqrSxgTcq4PGNmEFTxPU7gY0n7hJ3xH9vJfQ9ACxjSQ5HLZo9RQw725lQfMkdzO2DnEK3kFXs8W38zpGKYTZfUWoeSSsfHyjAMFVA+R4Y6G81ShEshckq+OsSLK22cYsmbRm4= Received: by 10.54.120.5 with SMTP id s5mr264093wrc; Wed, 18 May 2005 04:46:31 -0700 (PDT) Received: by 10.54.30.45 with HTTP; Wed, 18 May 2005 04:46:31 -0700 (PDT) Message-ID: <7104a7370505180446484395ea@mail.gmail.com> Date: Wed, 18 May 2005 14:46:31 +0300 From: Volkan YAZICI Reply-To: Volkan YAZICI To: "michael@softasap.net" Subject: Re: php5 and Pg 8.0.3 install from sources - problem Cc: pgsql-php@postgresql.org In-Reply-To: <1116415634.428b269259a03@webmail.freedom2surf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1116415634.428b269259a03@webmail.freedom2surf.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.561 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200505/34 X-Sequence-Number: 3148 Hi, On 5/18/05, 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 >=20 > 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. B= ut > 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=3D/usr postgresql-8.0.3# ./configure --prefix=3D$PGSQL_PREFIX ... ... php-5.0.4# ./configure ... --with-pgsql=3D$PGSQL_PREFIX Hope this helps. Regards.