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.
> > > configure: setting up Fortran 90 > > > checking what FC is set to... f77 > > > checking for Fortran flag to compile .f90 files... unknown > > > configure: error: Fortran could not compile .f90 files The immediate problem you're encountering is that your Fortran compiler, /usr/bin/f77 (fort77 Version 1.15), is incapable of compiling Fortran-90 files, a capability which is required to build and install the netCDF Fortran-90 interface, which is the default for all netCDF-4 versions. If you have a different Fortran compiler you'd like netCDF to use, you have to specify it as the value of the FC environment variable before running the configure script, as in FC=/usr/bin/gfortran ./configure --prefix= ... To see more details about options to configure and enviroment variables, use "./configure --help" . If you really don't need the netCDF Fortran programming interface, you could just specify FC="". But in that case there is no reason to use the old netCDF-4.1.3 version that builds both the C and Fortran libraries. Even if you need the Fortran library, it would be better to use a more recent supported version of the netCDF C library, such as the recently released netcdf-4.3.3.1 version with the recently released netcdf-fortran-4.4.2, according to these instructions: http://www.unidata.ucar.edu/netcdf/docs/getting_and_building_netcdf.html --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: BCT-221199 Department: Support netCDF Priority: Normal Status: Closed