Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 41FD363234F for ; Thu, 8 Jan 2009 22:45:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47660-01 for ; Thu, 8 Jan 2009 22:45:42 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mail.postgresql.org (Postfix) with ESMTP id 874B7632378 for ; Thu, 8 Jan 2009 22:45:42 -0400 (AST) Received: by rv-out-0506.google.com with SMTP id b25so10584727rvf.43 for ; Thu, 08 Jan 2009 18:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=zFZUdgIY69VvaYqwqO821TmgVnjugKUqfUZGBiYB0VQ=; b=XjdIVcEkJ4efB1Aaz0G2WywHaADgstDFXID7DoJhD/7vKD2ZbTSqlOw75N98ziinV+ He1evm1juiscEPP8DukT7uJzf2Oj8zqDcM3vRlmqG1Ckuzqmtl++qMsDiJR+pnqoFgnU aMtFt30EBAYShrLqFEVnJA9nW7QH3hB9/Sbow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=RQLoaGE/1g1Dajff6M5GVwjlTVLqtRRo7zRyMibE4rFXR3j7rAwQvMJwzo8zTz/lRp uVmKEJ95u+3hN6NtyuqxG08wh+JA7mL88yZ4KrhI3ZQuV2zd2n1GRPNS6jZAfVDrPZWO +MnoogCXUAeH5PqBhCjLxE0iTV/d2/JAloGhA= Received: by 10.141.33.19 with SMTP id l19mr12443795rvj.294.1231469140587; Thu, 08 Jan 2009 18:45:40 -0800 (PST) Received: from ?192.168.0.220? (office.squiz.net [203.206.128.174]) by mx.google.com with ESMTPS id k37sm598194rvb.1.2009.01.08.18.45.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Jan 2009 18:45:39 -0800 (PST) Message-ID: <4966BA4D.9050304@gmail.com> Date: Fri, 09 Jan 2009 13:45:33 +1100 From: Chris User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: "L. Zhao" CC: pgsql-php@postgresql.org Subject: Re: Question on libpq.so References: <230332.37017.qm@web31304.mail.mud.yahoo.com> In-Reply-To: <230332.37017.qm@web31304.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/6 X-Sequence-Number: 3961 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/