I am trying to get PL/R running on a linux server where I do not have root access. The installation itself works fine using the command below:
LD_INCLUDE_PATH="$HOME/pgsql/include" LD_LIBRARY_PATH="$HOME/pgsql/lib:$HOME/lib/R/lib" PGDATA="$HOME/usr/pgsql/data" PG_LIB_DIR="$HOME/pgsql/lib" R_HOME="$HOME/lib/R" USE_PGXS=1 make
When I try to add the plr extension to a database with CREATE EXTENSION plr;
however, I get the following error:
ERROR: could not load library "~/lib/postgresql/plr.so": libR.so: cannot open shared object file: No such file or directory
I read on the bottom of the install documentation page that I should add the library path to the LD config file /etc/ld.so.conf
, but I do not have root access and I can not change this file.
Is there a workaround for this?
thanks in advance