[R] Installing ncdf package

Stephen Nyangoma
2004-03-13T15:33:46Z

Hi
I used the command

R CMD INSTALL ncdf

to install ncdf package in linux. Can somebody explain to me what might
be wrong. Thanks. Below is the error.



* Installing *source* package 'ncdf' ...
Special note:
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/local/include/netcdf.h usability... no
checking /usr/local/include/netcdf.h presence... no
checking for /usr/local/include/netcdf.h... no
checking /usr/include/netcdf.h usability... no
checking /usr/include/netcdf.h presence... no
checking for /usr/include/netcdf.h... no
checking /iwi200/home/users/stephen/include/netcdf.h usability... no
checking /iwi200/home/users/stephen/include/netcdf.h presence... no
checking for /iwi200/home/users/stephen/include/netcdf.h... no
checking /iwi200/home/users/stephen/src/netcdf/netcdf.h usability... no
checking /iwi200/home/users/stephen/src/netcdf/netcdf.h presence... no
checking for /iwi200/home/users/stephen/src/netcdf/netcdf.h... no
checking /iwi200/home/users/stephen/src/netcdf/netcdf-3.4/netcdf.h
usability... no
checking /iwi200/home/users/stephen/src/netcdf/netcdf-3.4/netcdf.h
presence... no
checking for
/iwi200/home/users/stephen/src/netcdf/netcdf-3.4/netcdf.h... no
checking
/iwi200/home/users/stephen/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h
usability... no
checking
/iwi200/home/users/stephen/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h
presence... no
checking for
/iwi200/home/users/stephen/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h...
no

Fatal error: I cannot find the directory that holds the netcdf include
file netcdf.h!
You can specify it as follows:
      ./configure --with-netcdf_incdir=directory_with_file_netcdf.h

 *** Special note for R CMD INSTALL users:
*********************************
     The syntax for specifying multiple --configure-args does not seem
to be
     well documented in R.  If you have installed the netcdf include and
library
     directories in some non-standard location, you can specify BOTH
these
     during the R CMD INSTALL process using the following syntax:

   R CMD INSTALL
--configure-args="-with-netcdf_incdir=/path/to/netcdf/incdir
-with-netcdf_libdir=/path/to/netcdf/libdir" ncdf_1.1.tar.gz

     where you should, of course, specify your own netcdf include and
library
     directories, and the actual package name.

***************************************************************************

ERROR: configuration failed for package 'ncdf'