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.
Xiaoping Wang, > To: address@hidden > From: Xiaoping Wang <address@hidden> > Subject: netCDF 3.5.1beta13 on Red Hat 9.0 with pgi compiler > Organization: Princeton > Keywords: netCDF 3.6.1-beta13 PGI The above message contained the following: > I am having a problem to compile netCDF 3.5.1beta13 on my Linux PC. > > 1. The standard ouput of the command "uname -a" is: Linux > wws-bqzyx11.Princeton.EDU 2.4.20-20.9.PU_IAS.1 #1 Thu Aug 21 10:06:26 EDT > 2003 i686 i686 i386 GNU/Linux > > 2. VERSION: 3.5.1-beta13 > > 3. macros.make is attached > > 4. configure.log and config.log are attached > > 5. make.log is attached. > > Thanks very much for your help. > > Best regards, > Xiaoping ... > Making `all' in directory /model/usr_local/netcdf-3.5.1-beta13/src/fortran > > make[2]: Entering directory `/model/usr_local/netcdf-3.5.1-beta13/src/fortran' > /usr/pgi/linux86/5.0/bin/pgcc -c -O -I../libsrc -DNDEBUG -DpgiFortan > fort-attio > .c > make[2]: Leaving directory `/model/usr_local/netcdf-3.5.1-beta13/src/fortran' > make[1]: Leaving directory `/model/usr_local/netcdf-3.5.1-beta13/src' > > PGC-F-0249-#error -- "cfortran.h: Can't find your environment among: - > MIPS > cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) - IBM AIX > XL > C and FORTRAN Compiler/6000 Version 01.01.0000.... (./cfortran.h: 134) > PGC/x86 Linux/x86 5.0-2: compilation aborted > make[2]: *** [fort-attio.o] Error 2 > make[1]: *** [subdir_target] Error 1 > make: *** [fortran/all] Error 2 As the Linux "pgf90" example in the file INSTALL.html shows, you must define the C macro "pgiFortran" in the CPPFLAGS environment variable before executing the configure script. Please try the following: 1. Go to the top-level source directory. 2. Perform steps 3 through 5 described near the end of the file INSTALL.html. 3. Ensure that the environment variable CPPFLAGS defines the C macro "pgiFortran", e.g., export CPPFLAGS='-DNDEBUG -DpgiFortran' or setenv CPPFLAGS '-DNDEBUG -DpgiFortran' depending on your user-shell. 4. Perform steps 6 through 9 described near the end of the file INSTALL.html. Please let me know if this helps. Regards, Steve Emmerson