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.
Hello, Can you please provide the 'config.log' file generated when you ran configure? That will give additional information not contained in the makefile you provided. Thank you, -Ward > Dear Sir, > I came across the following make check error when I invoked > configure for netcdf-fortran-4.4.2 with the command > printenv LD_LIBRARY_PATH > export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH} > FC=gfortran-4.4 CPPFLAGS=-I/usr/local/bin/netcdf-c-4.3.3.1/include > LDFLAGS=-L/usr/local/lib ./configure > --prefix=/usr/local/bin/netcdf-fortran-4.4.2/ > I am using an Ubuntu 14.04 OS and mu netcdf ad netcdf c libraries > are all installed in usr/local/bin/respective folders. > > Error: > collect2: ld returned 1 exit status > make[2]: *** [nf_test] Error 1 > make[2]: Leaving directory > `/home/nanditha/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2/nf_test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory > `/home/nanditha/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2/nf_test' > make: *** [check-recursive] Error 1 > nanditha@nanditha-ThinkCentre-M73:~/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2$ > > > I had already tried the solution available,but it didn't work for my system. > The obtained make file is attached. > > Thanks & Regards > Nanditha J. S. > 14210029 > M. Tech, Civil Engineering > IIT Gandhinagar > > Ticket Details =================== Ticket ID: KBH-514997 Department: Support netCDF Priority: Normal Status: Closed