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.
> Hi, > I installed and compiled the NetCDF 4.0.1 library to be used with both C > and F90. > The library installed, but the installer did not create or install a > .mod file to be used with my F90 program. I tried configuring both with > --enable-f90 and without (since it's supposed to be enabled by default), > with the same results. > Previous versions of NetCDF4 (4.0 and a nightly build) did install the > .mod file. > > -Yana Malysheva > > Howdy Yana! I just checked, and I do get a netcdf.mod file installed on my machine, so perhaps something went wrong with your build. You can check your configure script for this kind of output: configure: setting up Fortran 90 checking for Fortran flag to compile .f90 files... none checking fortran 90 modules inclusion flag... -I checking if Fortran compiler can handle Fortran-90... yes If your fortran 90 compiler doesn't work the netCDF configure will silently turn off the fortran 90 API. If this is happening, look in your config.log file to find out what is happening to your fortran compiler. The configure script builds some very simple F90 programs - if the F90 compiler fails to do this, netCDF does not try to use it. Please let me know if this doesn't help. Thanks, Ed Ticket Details =================== Ticket ID: SYW-539274 Department: Support netCDF Priority: Normal Status: Closed