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.
> Hello, > > Actually the program I try to compile requires : > > ################################################################ > ## Edit these three to indicate the path for the netcdf include > ## file 'netcdf.h', the name of the netcdf library file, and the > ## path to that library file. > ################################################################ > NETCDFINCDIR =*/usr/include* > NETCDFLIB =*/usr/lib/ -lnetcdf* > NETCDFLIBDIR =*/usr/lib* > > In bold is what I filled, after the intel from the nc-config -all > command which gave me : > > This netCDF 4.1.1 has been built with the following features : > --cc -> gcc > --cflags -> -I/usr/include > --libs -> -L/usr/lib -lnetcdf > --cxx -> g++ > --fc gfortran > --fflags -> -g -02 -I/usr/include > --flibs -> -L/usr/lib -lnetcdff -lnetcdf > --hasf77 -> yes > --hasf90 -> yes > --prefix -> /usr > --includedir -> /usr/include > --version -> netCDF 4.1.1 > > What am I doing wrong ? > > Thank you, Are you using the same fortran compiler for netCDF as for you model? If you have a working netCDF installation, then you must talk to the producers of the model software if it cannot find netcdf. Good luck, Ed Ticket Details =================== Ticket ID: NMN-242593 Department: Support netCDF Priority: High Status: Closed