This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Steven, The way to specify particular flags to the C compiler for the configure script is through the environment variable CFLAGS, which you define in different ways depending on which command shell you are using. For example, if you are using sh, bash, or ksh, you could do it this way CFLAGS=-DNAGf90Fortran ./configure -prefix=/xhome/snelli/NetCDFlibrary and with csh or tcsh, you would instead use setenv CFLAGS DNAGf90Fortran ./configure -prefix=/xhome/snelli/NetCDFlibrary That may be enough, if that works to successfully run configure. Then you would just run "make check install" to compile, test, and install netCDF. Another user had success with an earlier version of netCDF (which required setting more environment variables than the currently smarter configure) on MacOSX using a NAG Fortran compiler and described how he did it here: http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#macosx-nagf95 which may help if you encounter other problems. We don't have a NAG Fortran compiler installed here to test this development environment, so may have trouble reproducing problems ... --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: NZA-172884 Department: Support netCDF Priority: Normal Status: Closed