¿Cómo instalar los paquetes R “RNetCDF” y “ncdf” en Ubuntu?
Me gustaría usar los paquetes R RNetCDF y ncdf en Ubuntu.
Cuando intentoinstall.packages('RNetCDF')
oinstall.packages('ncdf')
, Me sale errores similares:
...
ncdf.c:3:20: fatal error: netcdf.h: No such file or directory
compilation terminated.
make: *** [ncdf.o] Error 1
ERROR: compilation failed for package ‘ncdf’
...
Warning message:
In install.packages("ncdf") :
installation of package ‘ncdf’ had non-zero exit status
Los paqueteslibnetcdf6
ynetcdf-bin
Desde el repositorio de Ubuntu se instalan. ¿Necesito hacer algo más?