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.
> I am trying to install netcdf on my linux machine with disabled f90 > > I got fallowing error after $ make check > > Please suggest how to install netcdf > > make t_nc > make[3]: Entering directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > /usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT t_nc-t_nc.o > -MD -MP -MF .deps/t_nc-t_nc.Tpo -c -o t_nc-t_nc.o `test -f 't_nc.c' || echo > './'`t_nc.c > mv -f .deps/t_nc-t_nc.Tpo .deps/t_nc-t_nc.Po > /bin/sh ../libtool --tag=CC --mode=link /usr/bin/cc -g -O2 -o t_nc > t_nc-t_nc.o libnetcdf.la > libtool: link: /usr/bin/cc -g -O2 -o t_nc t_nc-t_nc.o ./.libs/libnetcdf.a > make[3]: Leaving directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > make check-TESTS > make[3]: Entering directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > trying again > FAIL: t_nc > ========================================= > 1 of 1 tests failed > Please report to address@hidden > ========================================= > make[3]: *** [check-TESTS] Error 1 > make[3]: Leaving directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > make[2]: *** [check-am] Error 2 > make[2]: Leaving directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/home/babu/Desktop/netcdf-3.6.3/libsrc' > make: *** [check-recursive] Error 1 > > > > Howdy Baburao! Are you still experiencing this problem with netCDF? Are you building this in the same directory that you have previously built netCDF? If so, can you do a make distclean and try again from scratch? To disable the F90 API you can set environment variable FC to null, or you can use the configure option --disable-f90. This will still result in the F77 API being built. To build *no* fortran API at all, set environment variables F77 and F90 to null, or use the --disable-f77 configure option (which will turn off both the F77 and F90 APIs.) Please let me know if this does not help. Thanks, Ed Ticket Details =================== Ticket ID: DCW-713719 Department: Support netCDF Priority: Critical Status: Closed