From Simon.Urbanek at math.uni-augsburg.de  Mon May 26 21:37:30 2003
From: Simon.Urbanek at math.uni-augsburg.de (Simon Urbanek)
Date: Mon May 26 20:37:49 2003
Subject: [Rd] R's DYLD_LIBRARY_PATH override problems on Mac OS X
In-Reply-To: <17E1872C-8F88-11D7-B37C-000393BB6D36@stat.ucla.edu>
Message-ID: <1BB66614-8FA9-11D7-B7E9-000393CE9026@math.uni-augsburg.de>

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@Math.Uni-Augsburg.de
http://simon.urbanek.info


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