Re: pl/R problem

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Don Isgitt <djisgitt(at)soundenergy(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/R problem
Date: 2006-08-22 23:22:27
Message-ID: 20060822232227.GA59318@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 22, 2006 at 04:24:46PM -0500, Don Isgitt wrote:
> gds2=# create function sd(_float8) returns float as '' language 'plr';
> CREATE FUNCTION
>
> gds2=# select round(sd('{1.23,1.31,1.42,1.27}'::_float8)::numeric,8);
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
>
> Relevant server log piece:
>
> cannot find system Renviron
> Fatal error: unable to open the base package
>
> LOG: server process (PID 6792) exited with exit code 2

I can reproduce this on Solaris 9 with PL/R 0.6.2-alpha and R 2.2.1
if I rename $R_HOME/etc/Renviron to something else. I don't get
the "unable to open the base package" error but I do get "cannot
find system Renviron" and several other errors like "Error in
options(...) : invalid editor parameter" followed by a segmentation
fault.

> So, the question: what am I missing that enables it to find the "Renviron"

Does the file $R_HOME/etc/Renviron or $R_HOME/etc/<architecture>/Renviron
exist and have permissions such that the PostgreSQL server can read
it? The error "cannot find system Renviron" comes from the R
function process_system_Renviron() in src/main/Renviron.c in response
to process_Renviron() returning 0, which it does if its filename
argument is NULL or if it can't open that file.

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Jowett 2006-08-22 23:47:48 Re: question regarding upgrade from pg74.215.jdbc3.jar to
Previous Message David Gagnon 2006-08-22 22:15:47 question regarding upgrade from pg74.215.jdbc3.jar to postgresql-8.1-407.jdbc3.jar. function does not exist appeared ??? Please help :-/