Marc Girondot
2014-Apr-06 14:26 UTC
[R] Any solution to have RnetCDF, ncdf or ncdf4 in R 3.1 ?
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
Pascal Oettli
2014-Apr-06 14:45 UTC
[R] Any solution to have RnetCDF, ncdf or ncdf4 in R 3.1 ?
Hello, Do you have NetCDF library correctly installed (with headers)? Regards, Pascal On Sun, Apr 6, 2014 at 11:26 PM, Marc Girondot <marc_grt at 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 at 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.-- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan
David W. Pierce
2014-Apr-06 14:47 UTC
[R] Any solution to have RnetCDF, ncdf or ncdf4 in R 3.1 ?
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_grt@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) dpierce@ucsd.edu [[alternative HTML version deleted]]