Hello

I'm trying to install the "ncdf" package on a Ubuntu 10.04 laptop.

Can you offer suggestions to install this package?


> install.packages("ncdf", repositories = TRUE)
Installing package(s) into ‘/home/steve/R/i486-pc-linux-gnu-library/2.12’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Error in download.file(url, destfile, method, mode = "wb", ...) :
  unused argument(s) (repositories = TRUE)
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package 'ncdf' failed

> install.packages("ncdf")
Installing package(s) into ‘/home/steve/R/i486-pc-linux-gnu-library/2.12’
(as ‘lib’ is unspecified)
trying URL 'http://cran.mirrors.hoobly.com/src/contrib/ncdf_1.6.5.tar.gz'
Content type 'application/x-gzip' length 78738 bytes (76 Kb)
opened URL
==================================================
downloaded 76 Kb

* installing *source* package ‘ncdf’ ...
checking for nc-config... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking netcdf.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
configure: error: netcdf header netcdf.h not found
ERROR: configuration failed for package ‘ncdf’
* removing ‘/home/steve/R/i486-pc-linux-gnu-library/2.12/ncdf’

The downloaded packages are in
    ‘/tmp/Rtmpt709vH/downloaded_packages’
Warning message:
In install.packages("ncdf") :
  installation of package 'ncdf' had non-zero exit status



Thank you
Steve

	[[alternative HTML version deleted]]

