Hi Marc, those packages are just interfaces to the netcdf library that must already exist on your machine. Try installing the netcdf library first, and then installing the R package.
You will need the development version of the netcdf library installed in order to compile the R packages. Hopefully the exact package name will be obvious in the package manager on your system. Regards, --Dave On Sun, Apr 6, 2014 at 7:26 AM, Marc Girondot <marc_...@yahoo.fr> wrote: > I just have installed the last RC of R 3.1. All is ok except for 3 > packages that I was not able to compile and they do not exist as > precompiled package for MacOSX (Marverick): > > These packages are RnetCDF, ncdf or ncdf4. For all, I get error when I try > to install them: > install.packages("RNetCDF", type="source") > .... > checking for nc_create in -lnetcdf... no > configure: error: netcdf library not found > ERROR: configuration failed for package 'RNetCDF' > * removing '/Library/Frameworks/R.framework/Versions/3.1/ > Resources/library/RNetCDF' > > install.packages("ncdf", type="source") > .... > configure: error: netcdf header netcdf.h not found > ERROR: configuration failed for package 'ncdf' > * removing '/Library/Frameworks/R.framework/Versions/3.1/ > Resources/library/ncdf' > Warning in install.packages : > installation of package 'ncdf' had non-zero exit status > > install.packages("ncdf4", type="source") > .... > ERROR: configuration failed for package 'ncdf4' > * removing '/Library/Frameworks/R.framework/Versions/3.1/ > Resources/library/ncdf4' > Warning in install.packages : > installation of package 'ncdf4' had non-zero exit status > > Sincerely, > > Marc Girondot > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- David W. Pierce Division of Climate, Atmospheric Science, and Physical Oceanography Scripps Institution of Oceanography, La Jolla, California, USA (858) 534-8276 (voice) / (858) 534-8561 (fax) dpie...@ucsd.edu [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.