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.
Ed, > To: address@hidden > cc: "Teizi Henmi" <address@hidden> > From: "Edward Vidal" <address@hidden> > Subject: Problem with fortran on linux redhat > Organization: UCAR/Unidata > Keywords: 200103131423.f2DENsL18476 The above message contained the following: > I have been trying to get the netcdf package 3.4 to compile on a Red Hat > Linux system. The package compiles for C but not for Fortran. > I did the following: > ./configure --prefix=/usr/local/netcdf-3.4 > make > This is where the error ocurrs in cfortran.h line 151. I have changed the > # to the trigraph ??= and a new error appears. > > > During the configure process > I see checking for f77 if finds g77 (Red Hat Linux has g77 and f77 is > linked to g77 which is in /usr/bin. I have also trying removing the link > for f77; thinking that it was getting confused and no help. Is there a > separate fortran library or does it use the libnetcdf.a? > > Thanks in advance the C works but we need the Fortran also for some of our > applications. > Ed Vidal I'll need more information in order to help you. Would you please send me the files "configure.log", "config.log", and "make.log", which are all mentioned in the top-level file "INSTALL.html". If you need to (re)create these files, then don't forget to do a "make distclean" first. Regards, Steve Emmerson <http://www.unidata.ucar.edu>