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.
Dov Kruger <address@hidden> writes: > Ed, > >> Are you running under windows? > I'm running under RedHat EE3. >> > >> > I assumed the following: >> > >> > ./config --prefix=/opt >> > make >> > make install >> > >> > and got two libraries: >> > libnetcdf.a >> > libnetcdf_cpp.a > >> That is correct. The libnetcdf.a file holds the fortran and C APIs. >> >> > >> > I use gnu fortran: >> > >> > gfortran test.f -L/opt/lib -lnetcdf >> > >> > program test >> > implicit none >> > include 'netcdf.inc' >> > integer:: status >> > integer ncid >> > status = nf_open('test.cdf', NF_WRITE, NCID) >> > end >> > >> > >> > and get a link error because _nf_open_ is not defined. >> >> Go to the nf_test directory of the netcdf distribution and run 'make >> test' > > I have netcdf-4.0a > There is no nf_test directory. There is an nc_test directory, but make > test doesn't work. Any hints? > > Dov I don't know what you are using but it should *NOT* be netcdf-4.0, unless you are interested in an experimental release that cannot be used for archive storage. (NetCDF-4.0 will come out in beta early next year). You need to get the 3.6.1p distribution from the netCDF homepage: http://www.unidata.ucar.edu/software/netcdf/ Go to the "Getting Started" section, and downloaded the "gzipped tar file." Let me know if you can't find it. Thanks! Ed -- Ed Hartnett -- address@hidden