X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6399056452 for ; Thu, 10 Mar 2005 08:28:08 +0000 (GMT) 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 37842-04 for ; Thu, 10 Mar 2005 08:28:03 +0000 (GMT) Received: from joeconway.com (wsip-24-249-201-67.sd.sd.cox.net [24.249.201.67]) by svr1.postgresql.org (Postfix) with ESMTP id E255F54DA7 for ; Thu, 10 Mar 2005 08:28:01 +0000 (GMT) Received: from [217.93.205.163] (account jconway HELO [192.168.72.101]) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 2649286; Thu, 10 Mar 2005 01:28:07 -0800 Message-ID: <4230050F.4000206@joeconway.com> Date: Thu, 10 Mar 2005 00:27:59 -0800 From: Joe Conway User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 X-Accept-Language: en-us, en MIME-Version: 1.0 To: elein Cc: postgresql Subject: Re: Using PL/R with 8.0 References: <20050309033614.GR5165@varlena.com> In-Reply-To: <20050309033614.GR5165@varlena.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/31 X-Sequence-Number: 5360 elein wrote: > I have R_HOME as /usr/lib/R > libR.so is in /usr/lib/R/lib/libR.so > and has rw-r--r-- permissions. > > /u/local/pgsql80/lib/plr.so is rwxr-xr-x. > > I've (re)built pg --with-plr and --with-libs=/usr/lib/R/ (just in case) I doubt this does anything useful at best. Postgres has no builtin support for PL/R. > > When I load plr.sql it complains: > ERROR: could not load library "/u/local/pgsql80/lib/plr.so": libR.so: cannot open shared object file: No such file or directory Try either: export LD_LIBRARY_PATH=/usr/lib/R/lib:$LD_LIBRARY_PATH as the postgres user (or whatever user owns the cluster) or edit /etc/ld.so.conf, add /usr/lib/R/lib, run ldconfig. Joe