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.
> Thanks for replying on a Saturday, Russ. I'm pretty sure I already had the > netCDF C library installed, but I did it again (successfully!) using the > latest release. However, I'm still getting the libtool error in "make check" > for netCDF Fortran. Attached is the config.log file resulting from the > compile. You might notice that I'm now attempting to build 4.4.1-rc1, which > resolved the need for the LIBS assignment at the beginning of the configure > call. From the config.log, it appears that you have set environment variables F77='' FC='' The configure script found /usr/local/bin/gfortran to use for the Fortran compiler, but your F77='' setting actually gets interpreted to mean that you don't have an F77 compiler. Try using F77=/usr/local/bin/gfortran FC=/usr/local/bin/gfortran instead, before rerunning the netCDF Fortran configure script. If you have your path set right, just using gfortran would probably work as well. --Russ > -Bridget > > > > > > On Aug 23, 2014, at 2:05 PM, Unidata netCDF Support wrote: > > > Hi Bridget, > > > >> I am having a problem when running "make check" when building > >> NetCDF-Fortran 4.4.0. First, just to get it to compile, I had to run this: > >> > >> LIBS="-lhdf5 -lhdf5_hl" ./configure --disable-shared --prefix=/opt/local/ > > > > Have you installed the netCDF C library first, which is required before > > building the > > netCDF Fortran library? Here are instructions for first building the > > netCDF C library, > > then the netCDF Fortran library: > > > > http://www.unidata.ucar.edu/netcdf/docs/getting_and_building_netcdf.html > > http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html > > > > If you encounter problems when building the C or Fortran libraries, please > > send > > us the "config.log" file that results from running the configure script > > before > > running make. > > > > --Russ > > > >> Then to get "make check" to do anything, I had to use this: > >> > >> make check FC=gfortran > >> > >> This gets part way through but then stops here: > >> > >> /bin/sh ../libtool --tag=FC --mode=link gfortran -g -O2 > >> -version-number 6:0:1 -L/opt/local/lib -o libnetcdff.la -rpath > >> /opt/local/lib typeSizes.lo module_netcdf_nc_data.lo > >> module_netcdf_nc_interfaces.lo module_netcdf_nf_data.lo > >> module_netcdf_nf_interfaces.lo module_netcdf_f03.lo nf_attio.lo > >> nf_control.lo nf_dim.lo nf_misc.lo nf_genatt.lo nf_geninq.lo nf_genvar.lo > >> nf_vario.lo nf_var1io.lo nf_varaio.lo nf_varmio.lo nf_varsio.lo > >> module_netcdf4_nc_interfaces.lo module_netcdf4_nf_interfaces.lo > >> module_netcdf4_f03.lo nf_lib.lo nf_nc4.lo netcdf4.lo nf_v2compat.lo > >> module_netcdf_fortv2_c_interfaces.lo nf_fortv2.lo -lnetcdf -lhdf5 > >> -lhdf5_hl > >> libtool: link: unsupported hardcode properties > >> libtool: link: See the libtool documentation for more information. > >> libtool: link: Fatal configuration error. > >> make[2]: *** [libnetcdff.la] Error 1 > >> make[1]: *** [check] Error 2 > >> make: *** [check-recursive] Error 1 > >> > >> I have searched for the answer to no avail. Can anyone point me in the > >> right direction? > >> > >> > >> > > Russ Rew UCAR Unidata Program > > address@hidden http://www.unidata.ucar.edu > > > > > > > > Ticket Details > > =================== > > Ticket ID: QUX-458465 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: QUX-458465 Department: Support netCDF Priority: Normal Status: Closed