If you are not using h5fc to compile your code then you need to include the
path to the file “hdf5.mod”. This will be found where you installed hdf5
(/opt/hdf5/include in your case). You can also look in bin/h5fc to see what
include dir. you have to include, for example
prefix=“/home/username/trunk/hdf5”
exec_prefix="${prefix}"
libdir="${exec_prefix}/lib"
includedir="${prefix}/include"
Scot
> On Oct 19, 2015, at 8:43 AM, [email protected] wrote:
>
> Hello,
>
> I have configured hdf5 1.8.14 with following flags:
>
> ./configure --enable-fortran --enable-fortran2003 --enable-production
> --enable-unsupported --enable-parallel --enable-cxx --with-zlib --with-szlib
> --prefix=/opt/hdf5
>
> however, after I make a f90 code I get the following error:
>
>
> USE HDF5
> 1
> Fatal Error: Can't open module file 'hdf5.mod' for reading at (1): No such
> file or directory
>
> Any help on this would be appreciated!
>
> I have also attache the config.log file.
>
> Thank you,
>
>
> Hadi Zolfaghari
> Ph.D. Candidate - Cardiovascular Engineering
> ARTORG Center for Biomedical Engineering Research
> University of Bern
>
> Murtenstrasse 50, CH- 3008 Bern, Switzerland
> Tel: +41 31 632 7575
> Fax: +41 31 632
> 7576<config.log>_______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5