[R-SIG-Mac] R CMD INSTALL cannot find netcdf library

jiho jo.irisson at gmail.com
Tue Sep 5 15:26:22 CEST 2006


Following up on my own e-mail:

there are in fact 2 problems with netcdf (and udunits by the way)  
librairies in /sw/

1/ compilation of source package: configure.args seems to be wrongly  
transferred to R CMD INSTALL from install.packages. Indeed:

	R CMD INSTALL --configure-args="--with-netcdf-include='/sw/inc' -- 
with-netcdf-lib='/sw/lib' --with-udunits-lib='/sw/lib/' --with- 
udunits-include='/sw/include'" RNetCDF_1.2-1.tar.gz

works from the command line while

	install.packages(c("RNetCDF"), lib = "/Library/Frameworks/ 
R.framework/Resources/library/", contriburl=contrib.url(getOption 
("repos"),"source"), type="source", dependencies=FALSE,  
configure.args=c("--with-netcdf-include='/sw/inc'","--with-netcdf- 
lib='/sw/lib'","--with-udunits-lib='/sw/lib/'","--with-udunits- 
include='/sw/include'"))

does not work from inside R shell.

2/ use of binary packages: the binary packages cannot find netcdf  
library and send an error messa	ge about Symbols not found.


Is there something I do wrong for 1? can I test something else to see  
if this is really a bug?
Concerning 2, is there a way to include Fink's path in R at startup?

Thanks in advance.

JiHO
---
http://jo.irisson.free.fr/



More information about the R-SIG-Mac mailing list