[R] Any solution to have RnetCDF, ncdf or ncdf4 in R 3.1 ?

Marc Girondot marc_grt at yahoo.fr
Sun Apr 6 16:26:12 CEST 2014


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




More information about the R-help mailing list