> O.K. I've tried it both ways, configuring with Ed and with the default > '/usr/local' in the directory 'netcdf-4.2.1'. Everything checks out > and I get the same result (with default directories, now) as before. > That is, no f90 libraries and 'nf-config' is not in the '/usr/local/bin' > directory. After installing NetCDF-4.2 in this way and assuming the > next step was to install the Fortran libraries I did ./configure, make > check install in the directory 'netcdf-fortran-4.2' and get When you ran ./configure for the Fortran libraries, you must provide the necessary CPPFLAGS and LDFLAGS (and possibly LD_LIBRARY_PATH) environment variables telling where the netCDF C library was installed, as described here: http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html From the output below, it appears that information wasn't provided to the netCDF Fortran configure script ... --Russ > address@hidden netcdf-fortran-4.2]# make check > Making check in f90 > make[1]: Entering directory `/home/jry/netcdf-fortran-4.2/f90' > make check-am > make[2]: Entering directory `/home/jry/netcdf-fortran-4.2/f90' > make[2]: Nothing to be done for `check-am'. > make[2]: Leaving directory `/home/jry/netcdf-fortran-4.2/f90' > make[1]: Leaving directory `/home/jry/netcdf-fortran-4.2/f90' > Making check in fortran > make[1]: Entering directory `/home/jry/netcdf-fortran-4.2/fortran' > make check-am > make[2]: Entering directory `/home/jry/netcdf-fortran-4.2/fortran' > depbase=`echo fort-v2compat.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > /bin/sh ../libtool --tag=CC --mode=compile gcc > -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -g -O2 -MT fort-v2compat.lo > -MD -MP -MF $depbase.Tpo -c -o fort-v2compat.lo fort-v2compat.c &&\ > mv -f $depbase.Tpo $depbase.Plo > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -g -O2 -MT > fort-v2compat.lo -MD -MP -MF .deps/fort-v2compat.Tpo -c fort-v2compat.c > -fPIC -DPIC -o .libs/fort-v2compat.o > fort-v2compat.c: In function 'c_ncopn': > fort-v2compat.c:274: error: 'NC_CLASSIC_MODEL' undeclared (first use in > this function) > fort-v2compat.c:274: error: (Each undeclared identifier is reported only > once > fort-v2compat.c:274: error: for each function it appears in.) > make[2]: *** [fort-v2compat.lo] Error 1 > make[2]: Leaving directory `/home/jry/netcdf-fortran-4.2/fortran' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/home/jry/netcdf-fortran-4.2/fortran' > make: *** [check-recursive] Error 1 > address@hidden netcdf-fortran-4.2]# make install > Making install in f90 > make[1]: Entering directory `/home/jry/netcdf-fortran-4.2/f90' > make install-am > make[2]: Entering directory `/home/jry/netcdf-fortran-4.2/f90' > make[3]: Entering directory `/home/jry/netcdf-fortran-4.2/f90' > make[3]: Nothing to be done for `install-exec-am'. > test -z "/home/ed/local/share/man/man3" || /bin/mkdir -p > "/home/ed/local/share/man/man3" > /usr/bin/install -c -m 644 netcdf_f90.3 '/home/ed/local/share/man/man3' > test -z "/home/ed/local/include" || /bin/mkdir -p "/home/ed/local/include" > /usr/bin/install -c -m 644 typesizes.mod netcdf.mod > '/home/ed/local/include' > make[3]: Leaving directory `/home/jry/netcdf-fortran-4.2/f90' > make[2]: Leaving directory `/home/jry/netcdf-fortran-4.2/f90' > make[1]: Leaving directory `/home/jry/netcdf-fortran-4.2/f90' > Making install in fortran > make[1]: Entering directory `/home/jry/netcdf-fortran-4.2/fortran' > make install-am > make[2]: Entering directory `/home/jry/netcdf-fortran-4.2/fortran' > depbase=`echo fort-v2compat.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > /bin/sh ../libtool --tag=CC --mode=compile gcc > -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -g -O2 -MT fort-v2compat.lo > -MD -MP -MF $depbase.Tpo -c -o fort-v2compat.lo fort-v2compat.c &&\ > mv -f $depbase.Tpo $depbase.Plo > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DDLL_EXPORT -g -O2 -MT > fort-v2compat.lo -MD -MP -MF .deps/fort-v2compat.Tpo -c fort-v2compat.c > -fPIC -DPIC -o .libs/fort-v2compat.o > fort-v2compat.c: In function 'c_ncopn': > fort-v2compat.c:274: error: 'NC_CLASSIC_MODEL' undeclared (first use in > this function) > fort-v2compat.c:274: error: (Each undeclared identifier is reported only > once > fort-v2compat.c:274: error: for each function it appears in.) > make[2]: *** [fort-v2compat.lo] Error 1 > make[2]: Leaving directory `/home/jry/netcdf-fortran-4.2/fortran' > make[1]: *** [install] Error 2 > make[1]: Leaving directory `/home/jry/netcdf-fortran-4.2/fortran' > make: *** [install-recursive] Error 1 > . > Should I, in fact, be using the code in this directory > (/home/jyr/netcdf-fortran-4.2/) to create the Fortran libraries or > should they have been created when I did the install in > /home/jry/netcdf-4.2.1. > > > Thanks for your patience on this, > > John Yearsley > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: CBA-908124 Department: Support netCDF Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.