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 Mike, > Any word on this? From your config.log file, it appears that the netCDF-C library isn't correctly installed: ... configure:21264: /usr/bin/gcc -o conftest -g -O2 -I/usr/local/netcdf-4.3.3.1/include -L/usr/local/netcdf-4.3.3.1/lib conftest.c >&5 /tmp/ccCpneB9.o: In function `main': /scratch/mpv/netcdf/netcdf-fortran-4.4.2/conftest.c:46: undefined reference to `nc_open' collect2: ld returned 1 exit status configure:21264: $? = 1 If you try to list the netCDF library files, what do you see? $ ls -l /usr/local/netcdf-4.3.3.1/lib/libnetcdf* If there's no output, then finish installing the netCDF-C library before trying to install netCDF-Fortran, as documented here: http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html It's possible that you built and tested the netCDF-C library, but just neglected to install it with "make install". --Russ > On 05/07/2015 02:36 PM, Unidata netCDF Support wrote: > > Hello Michael, > > > > That is odd; can you provide the `config.log` file generated when you ran > > configure? Also, can you tell me what version of libtool you are using? I > > will try to duplicate this issue, but I do not see a problem in any of our > > linux environments. > > > > Thanks! > > > > -Ward > > > >> Hello, > >> > >> I am trying to build netcdf-fortran-4.4.2 on a RHEL6 box. The "make > >> check" fails with the following libtool error: > >> > >> /bin/sh ../libtool --tag=F77 --mode=link -I../fortran > >> -I../fortran -L/usr/local/netcdf-4.3.3.1/li > >> b -o nf_test f03lib_f_interfaces.o test_get.o test_put.o nf_error.o > >> nf_test.o test_read.o test_write.o ut > >> il.o f03lib.o ../fortran/libnetcdff.la > >> Usage: /scratch/mpv/netcdf/netcdf-fortran-4.4.2/libtool [OPTION]... > >> [MODE-ARG]... > >> Try 'libtool --help' for more information. > >> libtool: error: unrecognised option: '-I../fortran' > >> make[2]: *** [nf_test] Error 1 > >> make[2]: Leaving directory > >> `/scratch/mpv/netcdf/netcdf-fortran-4.4.2/nf_test' > >> make[1]: *** [check-am] Error 2 > >> make[1]: Leaving directory > >> `/scratch/mpv/netcdf/netcdf-fortran-4.4.2/nf_test' > >> make: *** [check-recursive] Error 1 > >> [root@omega netcdf-fortran-4.4.2]# > >> > >> I tried an older version (netcdf-fortran-4.4.1) and the "make check" > >> failed quicky with a different libtool error. > >> > >> make[2]: Entering directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran' > >> /bin/sh ../libtool --tag=FC --mode=compile -g -O2 -c -o > >> typeSizes.lo typeSizes.f90 > >> libtool: compile: unrecognized option `-g' > >> libtool: compile: Try `libtool --help' for more information. > >> make[2]: *** [typeSizes.lo] Error 1 > >> make[2]: Leaving directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran' > >> make[1]: *** [check] Error 2 > >> make[1]: Leaving directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran' > >> make: *** [check-recursive] Error 1 > >> > >> > >> Any ideas? > >> > >> Thanks, > >> Mike > >> > >> -- > >> Michael Vrencur > >> Ace Info Solutions, Inc. (AceInfo) Supporting NOAA > >> Advanced Technology and Outreach Branch > >> Global Systems Division / Earth System Research Laboratory > >> address@hidden > >> 303.497.7526 > >> > >> > >> > > > > Ticket Details > > =================== > > Ticket ID: SZI-220177 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > -- > Michael Vrencur > Ace Info Solutions, Inc. (AceInfo) Supporting NOAA > Advanced Technology and Outreach Branch > Global Systems Division / Earth System Research Laboratory > address@hidden > 303.497.7526 > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: SZI-220177 Department: Support netCDF Priority: High Status: Closed