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 Daniel, For some reason, it is losing the preceding '/' character in front of '/usr/local' and is treating it like a relative path instead of an absolute path. Can you provide the config.log file generated when you run `configure`? That contains diagnostic information that may shed some light on this. Thanks! -Ward > Hello, > > I am attempting to install netcdf-fortran-4.4.2 on my local Red Hat machine > and I am having some issues. > > > I have netcdf-4.3.2 installed and working properly and need the fortran > version in order to run the University of Victoria Earth System Climate Model > on my machine. netcdf-4.3.2 is working properly (or at least it appears to be > working properly). I have been able to un-tar the tar ball, and I > successfully configured using the following command (in my "/usr/local" > directory) > > > "CPPFLAGS=-I$/usr/local/include LDFLAGS=-L$/usr/local/lib > LD_LIBRARY_PATH=/usr/local/lib ./configure --prefix=$/usr/local" > > When I attempt to run "make check", there is an issue stating > > > "Making check in fortran > make[1]: Entering directory `/usr/local/netcdf-fortran-4.4.2/fortran' > make check-am > make[2]: Entering directory `/usr/local/netcdf-fortran-4.4.2/fortran' > /bin/sh ../libtool --tag=FC --mode=link gfortran -g -O2 -version-number > 6:0:1 -Lusr/local/lib -o libnetcdff.la -rpath usr/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 > netcdf.lo netcdf3_file.lo nf_v2compat.lo > module_netcdf_fortv2_c_interfaces.lo nf_fortv2.lo -lnetcdf > ../libtool: line 7475: cd: usr/local/lib: No such file or directory > libtool: error: cannot determine absolute directory name of 'usr/local/lib' > make[2]: *** [libnetcdff.la] Error 1 > make[2]: Leaving directory `/usr/local/netcdf-fortran-4.4.2/fortran' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/usr/local/netcdf-fortran-4.4.2/fortran' > make: *** [check-recursive] Error 1" > > > I tried to get around this by adding to the "make check" > > > "LD_LIBRARY_PATH=/usr/local/lib make check" > > > and end up with the same exact error message. I also double checked to make > sure I have a folder "/usr/local/lib" and it indeed exists. I would really > appreciate any insight you can offer me to fix this issue. Thank you for your > time. > > > --Daniel D'Amico > > The Ohio State University > > Department of Geography > > 1036 Derby Hall > > 154 N Oval Mall > > Columbus, OH 43210 > > address@hidden > > (O) 614-219-2705 > > (C) 216-401-5234 > > Ticket Details =================== Ticket ID: BXZ-703136 Department: Support netCDF Priority: Normal Status: Closed