checking for nc_open in -lnc-dap... no configure: WARNING: DAP support disabled (missing libraries) ################################################ # Testing whether libnetcdf is Version 3 or 4 # ################################################ DEBUG: enable_netcdf4: no and enable_dap: no DEBUG: LIBS = ############################################# # Testing for HDF5 & netCDF4 libs # ############################################# DEBUG: LIBS = checking netcdf.h usability... no checking netcdf.h presence... no checking for netcdf.h... no configure: Checking default compiler flags checking for nc_open in -lnetcdf... no configure: Bad news: Simple program does not compile and link to libnetcdf.a with default compiler flags. Will try with 64-bit ABI flags... checking for nc_close in -lnetcdf... no ERROR: Unable to compile and link executable with "libnetcdf.a" with LDFLAGS= -m64 1. If netCDF is not installed, then download and install it: http://www.unidata.ucar.edu/packages/netcdf 2. If netCDF is installed correctly, set NETCDF_LIB to directory with libnetcdf.a 3. If configure fails here with NETCDF_LIB set correctly, try changing CC and/or CFLAGS until compilation and linking to libnetcdf.a works Currently CC="gcc -std=gnu99" and CFLAGS="-g -O2 -m64" do not work with libnetcdf.a Set environment variables CC and CFLAGS to working values and then re-run ./configure configure: error: Mandatory netCDF link test failed