Next: , Previous: installing-binaries, Up: Top


2 Quick Instructions for Installing NetCDF on Unix

Who has time to read long installation manuals these days?

To install netCDF, uncompress and unpack the tar file, then change to the distribution directory:

     gunzip netcdf-3.6.2.tar.gz
     tar -xf netcdf-3.6.2.tar
     cd netcdf-3.6.2

Now run the usual configure, make check, make install cycle:

     ./configure
     make check
     make install

The configure script will try to find necessary tools in your path. When you run configure you may optionally use the –prefix argument to change the default installation directory. For example, the following will install the library in /usr/local/lib, the header file in /usr/local/include, and the utilities in /usr/local/bin.

     ./configure --prefix=/usr/local

The default install root is /usr/local (so there's no need to use the prefix argument if you want the software installed there).

By default the netCDF configuration will build static libraries only. For shared libraries as well, use the –enable-shared option to configure.

If all this doesn't work, then you might have to read the next chapter. Better luck next time!