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.
> When building the netCDF C++ library, I get an error. I did > './configure --enable-shared' to configure. Then 'make check' in the > root netCDF source directory. I got some Fortran failure. Not caring > about Fortran, I carried on to build in the 'cxx' directory, since I > want the C++ library. > > Upon 'make check' in that directory, I got an error referring to > '../libsrc/<something or other>", so I backed up into that directory > and performed 'make check'. It seemed to work well. > > I then went back to 'make check' in 'cxx', and the following is the > output I got. As per the directions, I'm mailing this to you now. My > system is Slamd64 11.0 (it's a port of Slackware 11.0 to the AMD x86-64 > architechture). My system is a "DFI LanParty UT Ultra-D" nForce4 based > motherboard, with 1 GB of OCZ DDR400 RAM, and AMD Athlon64 3700+ > (SanDiego). > > Here is the error: > > make[1]: Entering directory `/usr/local/netcdf-3.6.2/cxx' > *** Testing C++ API with 2 different netCDF formats. > *** SUCCESS with file nctst_classic.nc > *** SUCCESS with file nctst_64bit_offset.nc > > *** Total number of failures: 0 > *** nctst SUCCESS! > PASS: nctst > NetCDF: String match to name in use > XFAIL: tst_failure > > *** Testing C++ API test program output. > *** dumping classic format file to nctst_classic.cdl and comparing... > ./run_nc_tests.sh: line 13: ../ncdump/ncdump: No such file or directory > FAIL: run_nc_tests.sh > ========================================= > 1 of 3 tests failed > Please report to address@hidden > ========================================= > make[1]: *** [check-TESTS] Error 1 > make[1]: Leaving directory `/usr/local/netcdf-3.6.2/cxx' > make: *** [check-am] Error 2 > > Howdy! You need to do a "make distclean" and then rerun configure, with the --disable-f77 option, which will turn of the fortran 77 and fortran 90 APIs. Then rerun make check, and see if it works. Let me know if this doesn't help! Thanks, Ed Ticket Details =================== Ticket ID: GJL-921650 Department: Support netCDF Priority: Normal Status: Closed