[R] libraries in $HOME/lib

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Apr 4 11:21:28 CEST 2002


On Thu, 4 Apr 2002, Michael Dondrup wrote:

> Paul Gilbert wrote:
> >
> > I have installed zlib and png libraries in $HOME/lib with headers in
> > $HOME/include and would like to pass this information along when I
> > configure R, but cannot find the proper incantation (R-1.4.1, Solaris,
> > csh). From the R-admin guide, I believe that
> >
> > (setenv LIBS -L$HOME/lib ; setenv CPPFLAGS -L$HOME/include ; ./configure
> > )
> >
> > should work, but I still get
> >
> > checking for png.h... no
> >
>
> I think you want to use option "-I" not "-L" with CPPFLAGS here:
> > setenv CPPFLAGS -I$HOME/include ;
> additionally you need to tell the linker where to find the libs:
> > setenv LDFLAGS -L$HOME/lib -R$HOME/lib ; (at least I did...)

R does that by setting LD_LIBRARY_PATH in its front end script `R',
so it should not be necessary to use -R.  I don't need it ....


One possible source of confusion: in R-devel (and 1.5.0-to-be) the
variable LIBS has been replaced by LDFLAGS, so there you would use

./configure -C CPPFLAGS=-I/$HOME/include LDFLAGS=-L$HOME/lib

(and you should set the variables this way as they are now `precious'
and will be re-used if re-configuration is needed).

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list