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.
Henry, > From: "Henry LeRoy Miller, Jr." <address@hidden> > Subject: netcdf 3.5 beta 3 & f90 install > Organization: Institut fur Stratospherische Chemie (ICG-1) > Keywords: 200010111342.e9BDgR415087 netCDF 3.5 beta The above message contained the following: > I've compiled the netcdf-3.5beta3 successfully on my Dec Alpha > workstation, running Tru64 Unix 4.0D (formerly Digital Unix 4.0D). > > This worked perfectly with just the normal > ./configure > make > > For our use it is important to have the netcdf.mod file available for > reference. I've patched the following files to install/uninstall > this file in the $(exec_prefix)/mod directory: Should the "netcdf.mod" file go into the $(exec_prefix)/mod directory or into the $(exec_prefix)/lib directory with "libnetcdf.a"? Is there an F90 convention? > src/macros.make > src/rules.make > src/f90/Makefile > > I suspect that macros.make.in and/or macros.make.defs should be the > actual file to patch, but I'm ignorant about the correct usage of > these files, so am just including the diffs below for the files > mentioned above. > > note: in rules.make, there was a "null" command - just a line with a > tab and no commands. I removed that as well. > > Regards, > Henry Miller > address@hidden > > ---- Begin diff output for src/macros.make ---- > > *** macros.make.new Wed Oct 11 16:52:10 2000 > --- macros.make.orig Wed Oct 11 16:51:36 2000 > *************** > *** 14,20 **** > INCDIR = $(exec_prefix)/include > LIBDIR = $(exec_prefix)/lib > BINDIR = $(exec_prefix)/bin > - MODDIR = $(exec_prefix)/mod > MANDIR = $(prefix)/man > > > --- 14,19 ---- > > ---- End diff output for src/macros.make ---- > > ---- Begin diff output for src/rules.make ---- > > *** rules.make.new Wed Oct 11 17:00:14 2000 > --- rules.make.orig Wed Oct 11 15:37:19 2000 > *************** > *** 129,141 **** > $(BINDIR)/$(PROGRAM): $(BINDIR) $(PROGRAM) > cp $(PROGRAM) $@ > > - $(MODDIR)/$(MOD_FILE): $(MODDIR) $(LIB_OBJS) > - cp $(MOD_FILE) $@ > - > $(BINDIR) \ > $(INCDIR) \ > $(LIBDIR) \ > - $(MODDIR) \ > $(MANDIR) : > -test -d $@ || mkdir $@ > > --- 129,137 ---- > *************** > *** 166,172 **** > > distclean: FORCE > rm -f *.o *.a *.so *.sl *.i *.Z core $(GARBAGE) \ > ! MANIFEST *.log $(DIST_GARBAGE) > > > ################################################################################ > # Dependencies: > --- 162,169 ---- > > distclean: FORCE > rm -f *.o *.a *.so *.sl *.i *.Z core $(GARBAGE) \ > ! MANIFEST *.log $(DIST_GARBAGE) > ! > > > ################################################################################ > # Dependencies: > > ---- End diff output for src/rules.make ---- > > ---- Begin diff output for src/f90/Makefile ---- > > *** Makefile.new Wed Oct 11 17:02:52 2000 > --- Makefile.orig Wed Oct 11 15:29:19 2000 > *************** > *** 2,8 **** > > LIBRARY = ../libsrc/libnetcdf.a > LIB_OBJS = netcdf.o > - MOD_FILE = netcdf.mod > GARBAGE = netcdf_test *.mod example.nc example.cdl > MANUAL = netcdf.3f90 > PACKING_LIST = \ > --- 2,7 ---- > *************** > *** 57,66 **** > netcdf_text_variables.f90 netcdf_expanded.f90 > $(COMPILE.F90) netcdf.f90 > > ! install: $(MANDIR)/man3f90/$(MANUAL) $(MODDIR)/$(MOD_FILE) > > uninstall: > -rm -f $(MANDIR)/man3f90/$(MANUAL) > - -rm -f $(MODDIR)/$(MOD_FILE) > > include ../rules.make > --- 56,64 ---- > netcdf_text_variables.f90 netcdf_expanded.f90 > $(COMPILE.F90) netcdf.f90 > > ! install: $(MANDIR)/man3f90/$(MANUAL) > > uninstall: > -rm -f $(MANDIR)/man3f90/$(MANUAL) > > include ../rules.make > > ---- End diff output for src/f90/Makefile ---- > > > ------- End of Forwarded Message > > ------- End of Forwarded Message Regards, Steve Emmerson <http://www.unidata.ucar.edu>