[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 

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 
## NOTE:
## We must set this here rather than in the main binary.
if test -z "${@shlibpath_var@}"; then
export @shlibpath_var@

... and in turn autoconf generates:
darwin* | rhapsody*)

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 Urbanek
Department of computer oriented statistics and data analysis
University of Augsburg
Universitätsstr. 14
86135 Augsburg

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

Simon.Urbanek at Math.Uni-Augsburg.de

More information about the R-devel mailing list