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 Ian, Sorry for the delay in responding to your question. > I’ve posted this on the NetCDF users forum but no joy yet, and I’m pushed for > time - so apologies for possibly duplicating the request! > > As a result of NCAR changing to HDF5 I’ve been trying to upgrade my NetCDF > libraries. I’m on a Power Mac running OS X 10.10.2. I usually have NetCDF-C > and NetCDF-Fortran installed as I need both. I can't duplicate your problem unless I first make a mistake that screws up the "libtool" configuration. fix the mistake, and then configure and make check. In particular, here is a sequence of commands that demonstrates the problem: $ CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L{NCDIR}/lib ./configure --prefix=${NFDIR} $ make check # gets an error because should have been LDFLAGS=-L${NCDIR}/lib $ CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L${NCDIR}/lib ./configure --prefix=${NFDIR} $ make check # gets the error you see If you just run "make distclean" after the first error that apparently results in a misconfigured libtool, then rerun configure and make check, everything works fine. The hint of what was wrong was in the "make check" output you sent, which had lots of error from "libtool" in the output before the error you reported. Please let us know if running a "make distclean" before the configure, or just starting over from a fresh distribution doesn't fix the problem. --Russ > Following the following web pages: > > http://www.unidata.ucar.edu/software/netcdf/docs/build_default.html > <http://www.unidata.ucar.edu/software/netcdf/docs/build_default.html> > > http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html > <http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html> > > I successfully installed HDF5 (1.8.13), zlib (1.2.8). I already have curl > (7.37.1). > > I successfully installed NetCDF for C (4.3.3.1). > > However, I’m getting an error for netcdf-fortran when I make check: > > gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc -I../fortran -I../fortran > -m64 -c -o ftst_rengrps.o ftst_rengrps.F > ftst_rengrps.F:49.48: > > call check(nf_create(FILE_NAME, NF_NETCDF4, ncid)) > 1 > Error: Symbol 'nf_netcdf4' at (1) has no IMPLICIT type > make[2]: *** [ftst_rengrps.o] Error 1 > make[1]: *** [check-am] Error 2 > make: *** [check-recursive] Error 1 > > It seems to not be picking up netcdf.inc, though that is in place. > > Here’s the set of commands that get me to the fail point: > > ~/Downloads/netcdf-fortran-4.4.2] ianharris% setenv CPPFLAGS > -I/usr/local/include > ~/Downloads/netcdf-fortran-4.4.2] ianharris% echo $CPPFLAGS > -I/usr/local/include > > ~/Downloads/netcdf-fortran-4.4.2] ianharris% setenv LDFLAGS -L/usr/local/lib > ~/Downloads/netcdf-fortran-4.4.2] ianharris% echo $LDFLAGS > -L/usr/local/lib > > > ~/Downloads/netcdf-4.3.3.1] ianharris% ./configure --prefix=/usr/local > --enable-netcdf-4 > > ~/Downloads/netcdf-4.3.3.1] ianharris% make check > > ~/Downloads/netcdf-4.3.3.1] ianharris% sudo make install > > ~/Downloads/netcdf-4.3.3.1] ianharris% cd ../netcdf-fortran-4.4.2 > > ~/Downloads/netcdf-fortran-4.4.2] ianharris% ./configure > > ~/Downloads/netcdf-fortran-4.4.2] ianharris% make check > > The full output from the 'make check' command is attached. > > As far as I can see, I’m following the online instructions (I added the > '—enable-netcdf-4' option after advice from Ted Mansell, though it didn’t > affect the result). > > Any suggestions as to what I’ve done wrong will be gratefully received! > > Cheers > > Harry > Ian "Harry" Harris > Climatic Research Unit > School of Environmental Sciences > University of East Anglia > Norwich NR4 7TJ > United Kingdom > > IMPORTANT NOTICE - This email is intended for the named recipient only. It > may contain privileged and confidential information. If you are not the > intended recipient, notify the sender immediately and destroy this email. You > must not copy, distribute or take action in reliance upon it. Whilst all > efforts are made to safeguard emails, The School of Environmental Sciences > cannot guarantee that attachments are virus free or compatible with your > systems and does not accept liability in respect of viruses or computer > problems experienced. > > > > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: USB-983787 Department: Support netCDF Priority: Normal Status: Closed