Re: [R] ./configure needs /sw/lib?
On Sun, 29 Jun 2003, Tony Marlboro wrote: Hello, I am using R on Mac OS X. I have tried to install the package netCDF, but have run into a problem. The install.packages command fails during a call to the configure shell script in the package build directory, because it cannot find the netCDF libraries on my system. Those libraries are installed in /sw/lib, as they were installed with fink, and this system puts everything in /sw. Either I need a way to give configure flags to install.packages(), or this package is broken. Note that /sw/lib/R/etc/Makeconf has all the right build flags. Is there a mechanism for handling problems of this nature? 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). 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'. I would consider this to be a problem with your setup, not with R nor netCDF: why should netCDF know anything about fink? -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] ./configure needs /sw/lib?
On Mon, 30 Jun 2003, Tony Marlboro wrote: 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's in the FAQ. Of course, it would be nice for the rest of us if MacOS X were not so out-of-kilter. 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. On a normal Unix system, something like C_INCLUDE_PATH and LD_LIBRARY_PATH, who knows on such a system as MacOS X. -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] ./configure needs /sw/lib?
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 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help