[R] The system command and the LD_LIBRARY_PATH
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 22 18:35:01 CET 2005
On Tue, 22 Feb 2005, W.E. Wolski wrote:
> Hi R-gurus,
>
> In my envirovment I have specified the LD_LIBRARY_PATH to
> /data/opt/libmy/lib
>
> After starting R the LD_LIBRARY_PATH variable is changed.
>> Sys.getenv("LD_LIBRARY_PATH")
>
> "/data/opt/R-devel//lib/R/lib:/usr/local/lib:/usr/X11R6/lib:/data/opt/libmy/lib"
>
>
> The problem is that in /usr/local/lib is an acient version of mylib hence
> a call to _system_ with fails badly.
>
>
>
> Suggestions?
Read the R-admin manual (as the INSTALL file asks) and set the flags
correctly for your setup when you install R. In particular, read
carefully what it says about LDFLAGS: this should not be a surprise to
you.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list