Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 901386516BF for ; Mon, 23 Jun 2008 23:34:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51712-06 for ; Mon, 23 Jun 2008 23:34:47 -0300 (ADT) 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.232]) by postgresql.org (Postfix) with ESMTP id 27A936516A3 for ; Mon, 23 Jun 2008 23:34:53 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so9812011rvf.43 for ; Mon, 23 Jun 2008 19:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=21JaxF4UClC/SBvOjbWoeoMff7++3FamBOdfvmvMgUw=; b=pG+Xsv39goG2gDmvpckDjDFFqt5zjuMspePdvymXODSfr/ua3OGB3TYgYK25Z8oqpS aA6k2n3M57rHycFuBe3ljgsplkwexTPgaW39k5GrFeaCxwJETseHuDfDYbvHj9HlRE9W PcHpcLKJ4RHN4BO234q0nJB1v+YzdNfDp2ngA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kHuwprAQlAWI6yvLAnHo8TbMukgCv0ryieOmvRNyGnGtAfP3sY5EsDlsrGsLTvRmMp NFlboUYMVBWi10cGvvdXVDgiLRkgJ550DiDt+hG4djkZugJ8RCCPFVtKFn4RsuDuVUB/ un5VdlHsM9pzi8DTJGiEiJloxY+cisGuFKg/Q= Received: by 10.141.15.19 with SMTP id s19mr13832065rvi.205.1214274891100; Mon, 23 Jun 2008 19:34:51 -0700 (PDT) Received: by 10.150.138.19 with HTTP; Mon, 23 Jun 2008 19:34:51 -0700 (PDT) Message-ID: Date: Mon, 23 Jun 2008 22:34:51 -0400 From: "P Kapat" To: pgsql-admin@postgresql.org Subject: Re: adding a user library path.. In-Reply-To: <4989.1214265185@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4989.1214265185@sss.pgh.pa.us> 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: 200806/200 X-Sequence-Number: 29538 Thanks Tom, On Mon, Jun 23, 2008 at 7:53 PM, Tom Lane wrote: > "P Kapat" writes: >> If I understand correctly, the shared libraries for postgis should be >> inside $PKGLIBDIR for the server to see them. Is there any userland >> configuration (like adding $HOME/usr/local/lib to ~/.psqlrc) that will >> solve this? > > Do you have superuser privs on the database? If so, you could try > altering the SQL files for postgis etc to reference the shared libraries > where you put them. But that likely won't work if SELinux is enabled > on the system. As it happens, I do have superuser privs on the database but (as it also happens!) SELinux is enabled on this system. > If you don't have superuser then you have no hope of installing these > modules without admin intervention, because you can't execute the CREATE > FUNCTION commands, independently of where the shlibs are. Two questions in that case: 1. How should the admin go about adding $HOME/usr/local/lib to $PKGLIBDIR? 2. (this is extraneous to the current issue) How is ~/.psqlrc useful to me? Links to any HOWTOS / Docs will be much appreciated. > regards, tom lane Regards, -- Regards PK -------------------------------------- http://counter.li.org #402424