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 Gina, It would be good to use the same compiler to build the netCDF libraries as you use when compiling your model to link, with those libraries, especially if the model is in Fortran90. When you build netCDF, if you want something other than the default compilers found by the configure script, you need to specify these explicitly, as described here: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Specifying-the-Environment-for-Building.html So, for example, to build netcdf libraries with xlc_r and xlf90_r, you need to run "make distclean" in the source directory, then define the environment variables CC="xlc_r" and FC="xlf90_r". The way you specify environment variables differs depending on what shell you are using, as explained in the section of the installation guide referred to above. You should let the configure script generate the makefiles, rather than modifying any of them manually. I hope this helps, and sorry for not getting to your earlier question yet, we've been getting an overwhelming number of support questions lately ... --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: MKE-784841 Department: Support netCDF Priority: Normal Status: Closed