If you will be developing programs that use netCDF, you need to know about Getting and Building the netCDF-C Libraries.
The build-commands handout which accompanies this information can be found here.
2012 Unidata NetCDF Workshop