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.
Peter, One more thing I should have requested. Could you send the entire netCDF-4.3.0 config.log produced by running the netCDF configure script? It provides more detailed information that might give us an idea why the installed hdf5-1.8.9 library is not being found ... --Russ > > I am trying to install netCDF 4.3.0 on a Scientific Linux 6.4 system > > with Intel studio c and fortran compilers but have hit a problem, wonder > > if you can help resolve this. > > > > I used the following commands (in a script) to install hdf5-1.8.9, which > > appears to have gone through the "make check" without major problems. > > > > When it comes down to install netCDF 4.3.0, it then complains with the > > above error. > > > > As you can see from the script, I have already exported the environment > > variables CPPFLAGS, LDFLAGS, and LD_LIBRARY_PATH to point to the installed > > location on hdf5-1.8.9. I have also confirmed the hdf5 installed location > > being correct. > > > > However the fault persists. I have attached the log on this installation. > > I can't duplicate the problem here, using HDF5-1.8.9, netCDF 4.3.0, and a > shell > script very similar to yours, except that I use gcc rather than Intel > compilers, and > I didn't enable fortran or cxx in the HDF libraries (those APIs aren't used by > netCDF-4). I note that you repeated the HDF5-1.8.9 library location in the > first and third position of your LD_LIBRARY_PATH and LD_RUN_PATH env > variables, but that shouldn't cause a problem. > > Does it all work if you use gcc instead of icc? > > --Russ > > > > Much grateful if anyone can advise on this. > > > > Regards, > > > > Peter Chiu > > > > STFC Rutherford Appleton Laboratory > > UK > > echo "Enable intel 64 compilers" > > #intel64 > > source /opt/intel/bin/compilervars.sh intel64 > > > > CC=/opt/intel/composer_xe_2013.0.079/bin/intel64/icc > > > > FC=/opt/intel/composer_xe_2013.0.079/bin/intel64/ifort > > > > CXX=/opt/intel/composer_xe_2013.0.079/bin/intel64/icpc > > > > export CC FC CXX > > ls $CC $FC $CXX > > > > echo "Start installing hdf5-1.8.9 with intel" > > cd /usr/local/kits/netcdf-src/hdf5-1.8.9 > > > > make distclean > > > > ./configure --prefix=/usr/local/hdf5-1.8.9intel > > --with-szlib=/usr/local/szip \ > > --with-zlib=/usr/local/zlib1.2.7 --enable-fortran --enable-cxx > > --disable-shared > > echo; echo "`date`: make" > > make > > echo; echo "`date`: make check" > > make check > > echo; echo "`date`: make check install" > > make install > > > > echo > > > > echo "Set CPPFLAGS..." > > CPPFLAGS='-I/usr/local/hdf5-1.8.9intel/include' > > > > ls /usr/local/hdf5-1.8.9intel/include /usr/local/szip/include > > /usr/local/zlib1.2.7/include > > > > echo "Set LDFLAGS..." > > LDFLAGS='-L/usr/local/hdf5-1.8.9intel/lib' > > > > ls /opt/intel/composer_xe_2013.0.079/compiler/lib/intel64 > > /usr/local/hdf5-1.8.9intel/lib /usr/local/szip/lib /usr/local/zlib1.2.7/lib > > export CPPFLAGS LDFLAGS > > > > LD_LIBRARY_PATH="/usr/local/hdf5-1.8.9intel/lib:/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64:/usr/local/hdf5-1.8.9intel/lib:/usr/local/szip/lib:/usr/local/zlib1.2.7/lib:$LD_LIBRARY_PATH" > > LD_RUN_PATH="/usr/local/hdf5-1.8.9intel/lib:/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64:/usr/local/hdf5-1.8.9intel/lib:/usr/local/szip/lib:/usr/local/zlib1.2.7/lib:$LD_RUN_PATH" > > > > export LD_LIBRARY_PATH LD_RUN_PATH > > > > cd /usr/local/kits/netcdf-src/netcdf-4.3.0 > > > > make distclean > > > > ./configure --prefix=/usr/local/netcdf-4.3.0ifort64-hdf5-1.8.9 > > --disable-dap-remote-tests > > > > make > > make check > > > > > > -- > > Scanned by iCritical. > > > > > > > > Russ Rew UCAR Unidata Program > address@hidden http://www.unidata.ucar.edu > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: JZT-105309 Department: Support netCDF Priority: Normal Status: Closed