[R] ./configure needs /sw/lib?

Tony Marlboro junkmail at yovo.org
Mon Jun 30 16:19:01 CEST 2003


Thank you for your reply, Professor Ripley.

> Yes, to use R CMD INSTALL directly: use R CMD INSTALL --help to find
> out how.  You need to supply --with-netCDF=/sw, I believe (but then
> the headers may not be found).

R CMD INSTALL --configure-args="--with-netCDF=/sw" netCDF_1.5.tar.gz
was the correct incantation, thanks.

I spent a considerable amount of time trying to figure this out on my
own, and I think it would have been easier if the "Add-on packages"
section of the "R Installation" manual were more complete.  It would
be nice to highlight the differences between install.packages() and R
CMD INSTALL, if at least to mention the extra capabilities of R CMD INSTALL.
I would like to submit a documentation patch.  With whom should I
correspond? 

> It should be simpler to fix your OS: if you put /sw/include in your
> INCLUDE path and /sw/lib in your LIBRARY path then configure in
> netCDF should work `out of the box'.

Are you referring to environment variables called INCLUDE and LIBRARY?
I tried setting them, then running R CMD INSTALL without any extra
args to configure, and it failed.  I'm quite curious what you mean by
"INCLUDE path" and "LIBRARY path".


	Regards,
		Tony




More information about the R-help mailing list