(tested on Ubuntu 14.04 LTS)
You will need to install the packages libnetcdf-dev
and possibly also netcdf-bin
. After that, there should be a file called netcdf.mod
in /usr/include/
. You will need to point Fortran to the right directories by changing the appropriate lines in the makefile:
F90 = gfortran FFLAGS = -c -O3 -I/usr/local/include -I/usr/include LDR= gfortran LDRFLAGS= LIBS= -L/usr/local/lib -lnetcdff -lnetcdf
ncview is also available in the Ubuntu sources, so just install it from there.