[R] problem with the installed R script

Liaw, Andy andy_liaw at merck.com
Tue Oct 28 18:43:39 CET 2003


Dear R-help,

I had a problem running a Perl script on AIX inside pipe() or system().  The
Perl script was not finding some modules when run from within R.  The
sysadmin tracked it down to a problem with R_LD_LIBRARY_PATH in the
installed /usr/local/bin/R script:

original:
:
${R_LD_LIBRARY_PATH=${R_HOME}/bin:/opt/freeware/lib:/usr/local/lib:/opt/free
ware/lib:/usr/local/lib:/opt/freeware/lib:/usr/local/lib:${R_HOME}/bin}

new:
:
${R_LD_LIBRARY_PATH=${R_HOME}/bin:/usr/local/lib:/opt/freeware/lib:/usr/loca
l/lib:/opt/freeware/lib:/usr/local/lib:/opt/freeware/lib:/usr/local/lib:${R_
HOME}/bin}

I was told that our installation of Perl must look in /usr/local/lib for the
modules to load.  This directory was at the end of "original" path and
therefore Perl was not able to load the modules.  Does anyone know what, if
anything, needs to be done at the configure step to correct this problem, so
we don't need to fix this by hand every time?

BTW, this is R-1.7.1 (they've been having problem getting 1.8.0 to compile
on that system).

Thanks!
Andy


Andy Liaw, PhD
Biometrics Research      PO Box 2000, RY33-300     
Merck Research Labs           Rahway, NJ 07065
mailto:andy_liaw at merck.com        732-594-0820




More information about the R-help mailing list