[Rd] R's DYLD_LIBRARY_PATH override problems on Mac OS X

Simon Urbanek Simon.Urbanek at math.uni-augsburg.de
Mon May 26 21:37:30 MEST 2003


On Monday, May 26, 2003, at 04:41  PM, Jan de Leeuw wrote:

> I don't think  there is a reason to set  DYLD_LIBRARY_PATH in bin/R. 
> Not even fink sets this variable.
Well, that's what I think as well .. so my question is, why is it there 
then?

My guess is that it's due to the fact that the script was written for 
all unix platforms, therefore it explicitly sets it since some unixes 
need it. It is in src/scripts/R.sh.in (this one is from today's 
R-devel):
## NOTE:
## We must set this here rather than in the main binary.
: ${R_LD_LIBRARY_PATH=${R_HOME}/bin:@R_LD_LIBRARY_PATH@}
if test -z "${@shlibpath_var@}"; then
   @shlibpath_var@="${R_LD_LIBRARY_PATH}"
else
   @shlibpath_var@="${R_LD_LIBRARY_PATH}:${@shlibpath_var@}"
fi
export @shlibpath_var@

... and in turn autoconf generates:
darwin* | rhapsody*)
[...]
shlibpath_var=DYLD_LIBRARY_PATH

So what's the most clean way to fix that? One more "if" or for Darwin 
in R.sh.in? Remove X11 from R_LD_LIBRARY_PATH for Darwin?

Simon
---
Simon Urbanek
Department of computer oriented statistics and data analysis
University of Augsburg
Universitätsstr. 14
86135 Augsburg
Germany

Tel: +49-821-598-2236
Fax: +49-821-598-2200

Simon.Urbanek at Math.Uni-Augsburg.de
http://simon.urbanek.info



More information about the R-devel mailing list