3.8 Installing NetCDF
To install the libraries and executables, run "make install". This
will install to the directory specified in the configure step.
Run the installation like this:
The install will put files in the following subdirectories of the
directory you provided as a prefix, creating the subdirectories if
- Libraries will be installed here. If static libraries are built,
without separate fortran libraries, then libnetcdf.a and libnetcdf.la
will be installed. If the C++ API is built, libnetcdf_c++.a and
libnetcdf_c++.la will be added. If separate fortran libraries are
built, libnetcdff.a and libnetcdff.la will also be added.
Static library users should ignore the .la files, and link to the .a
Shared library builds will add some .so files to this directory, as
- Header files will be installed here. The C library header file is
netcdf.h. If the C++ library is built, ntcdfcpp.h, ncvalues.h and
netcdf.hh will be installed here. If the F77 API is built, netcdf.inc
will be copied here. If the F90 API is built, the netcdf.mod and
typesizes.mod files will be copied here as well.
- Utilities ncdump and ncgen will be installed here.
- The ncdump/ncgen man pages will be installed in subdirectory man1, and
the three man pages netcdf.3, netcdf_f77.3, and netcdf_f90.3 will be
installed in the man3 subdirectory.
- If the configure is called with the –enable-docs option, the netCDF
documentation set will be built, and will be installed under the share
directory, under the netcdf subdirectory. This will include
postscript, PDF, info and text versions of all netCDF manuals. These
manuals are also available at the netCDF web site.
Try linking your applications. Let us know if you have problems
(see Reporting Problems).