Hello,
I am trying to install OpenMC to work on a class project. I installed HDF5 but this is what I get with the cmake:
– Checking whether Fortran compiler has -isysroot
– Checking whether Fortran compiler has -isysroot - yes
– Checking whether Fortran compiler supports OSX deployment target flag
– Checking whether Fortran compiler supports OSX deployment target flag - yes
– Detected MPI wrapper: mpif90
– Could NOT find HDF5 (missing: HDF5_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:74 (message):
Could not find HDF5
– Configuring incomplete, errors occurred!
See also “/path/to/openmc/build/CMakeFiles/CMakeOutput.log”.
Amani
Hi Amani,
Did you try to set the HDF5_ROOT environment variable as described here?
Best regards,
Paul
Hi Paul,
Thank you for your answer. I tried it but I still get the same error.
Amani
How did you install HDF5 on your system?
I followed these instructions:
gunzip < hdf5-1.8.17.tar.gz | tar xf -
cd hdf5-1.8.17
./configure --prefix=/usr/local/hdf5 <more configure_flags>
make
make check # run test suite.
make install
Did your include --enable-fortran and --enable-fortran2003?
Hi Amani,
If you are using Ubuntu 16.04 LTS then you may try,
gunzip < hdf5-1.8.17.tar.gz | tar xf -
cd hdf5-1.8.17
sudo mkdir /opt/phdf5
sudo chown -R username /opt/phdf5
CC=/opt/mpich/3.1.3-gnu/bin/mpicc FC=/opt/mpich/3.1.3-gnu/bin/mpif90 ./configure --prefix=/opt/phdf5/1.8.17-gnu --enable-fortran --enable-fortran2003 --enable-parallel
make -j
$ make install
In 4th command line use your user name where specified. It worked for me. Hope it works for you also.
Best,
Mirza