Next: Building and Installing NetCDF on Unix Systems, Previous: installing-binaries, Up: Top
Who has time to read long installation manuals these days?
To install netCDF, uncompress and unpack the tar file, then change to the src directory:
gunzip netcdf-3.6.1.tar.gz
tar -xf netcdf-3.6.1.tar
cd netcdf-3.6.1/src
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 .. (i.e. the parent directory, which will be netcdf-3.6.1).
If all this doesn't work, then you might have to read the next chapter. Better luck next time!