shared libraries - 'Can't find hdf5 library' while installing netCDF4 -
i trying build netcdf4 source on macosx. when run ./configure error:
checking library containing h5fflush... no configure: error: can't find or link hdf5 library. use --disable-netcdf-4, or see config.log errors.
i installed hdf5 before, , set environment variables as:
ldflags=-l/opt/local/lib cppflags=-i/opt/local/include
in /opt/local/lib have these files:
libhdf5.8.dylib libhdf5.a libhdf5.dylib libhdf5.settings libhdf5_cpp.8.dylib libhdf5_cpp.a libhdf5_cpp.dylib libhdf5_hl.8.dylib libhdf5_hl.a libhdf5_hl.dylib libhdf5_hl_cpp.8.dylib libhdf5_hl_cpp.a libhdf5_hl_cpp.dylib
and in /opt/local/include have:
hdf5.h hdf5_hl.h
why doesn't configure script find hdf5 library? happy provide more information if needed!
edit: ultimate goal install netcdf4 use fortran module. have tried installing through macports, , seemed work, when tried use it, compiler told me there no netcdf.mod file, , sure enough there wasn't 1 found anywhere. turns out typing:
sudo port install netcdf-fortran
only installs library files, doesn't create .mod file, guess needed. found out other people had same problem, , advice given install gcc44, did create .mod file, compiler told me .mod file built different version of gfortran , couldn't used, that's why trying build scratch, if has faster option, more happy try it!
ok, figured out. reinstalled netcdf-fortran macports, .mod file appeared, had problem, however, when running gfortran, tell me netcdf.mod compiled different version of fortran 1 using. (macports uses 4.8), got gcc48 macports , using gfortran-mp-4.8 compile , works.
still don't know how build these things scratch, works @ least!!!
Comments
Post a Comment