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.
Leilane, The result from nm means your netcdf library does include the Fortran-77 interface, but it is apparently built for a different compiler than you have, so you will have to reinstall netCDF or use whatever Fortran compiler the GMT installation expected. When you installed GMT, your installation file had #--------------------------------------------- # NETCDF SECTION #--------------------------------------------- netcdf_ftp=n netcdf_install=n netcdf_path=/usr/local/lib passive_ftp=n The value of "n" for netcdf_install provided an "n" answer to the installation question "Have you installed netcdf (version 3.6 or later)? (y/n)", so that is why the install_gmt script reinstalled the netCDF library. I don't know enough about GMT to know how it determines what Fortan compiler to use in building netCDF, but I would think it just uses whatever the default is for the netCDF "configure" script that builds the library from source. To rebuild and reinstall it, get the source distribution from the netCDF home page, run the "configure" script, then run "make check" and "make install", as described here: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions-for-Installing-NetCDF-on-Unix.html You should install it where GMT expects it, in /usr/local. FOrtunately, that is the default location that the netCDF version 3.6.2 configure script uses, so you do not need to give a "--prefix=..." argument to the configure script. Alternatively, if you have a backup from before when you installed the GMT package, you could restore the netCDF library from /usr/local/lib/ and the include files from /usr/local/include/ to get the older version that you know works with your Fortran compiler. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: QLC-865146 Department: Support netCDF Priority: Normal Status: Closed