hdf5.h no such file or directory URGENCE


#1

Hi!
I’m having a trouble installing a software, SMILEI it is dedicated to plasma simulation.
This software require some dependencies, among them the HDF5 dependency.

I’ve installed it but however I do I got this error :

**younes@user-HP-Pro-3500-Series:/usr/local/smilei/Smilei$ make**
**Compiling src/Checkpoint/Checkpoint.cpp**
**In file included from src/Checkpoint/Checkpoint.cpp:7:**
**src/Checkpoint/Checkpoint.h:13:10: fatal error: hdf5.h: No such file or directory**
**   13 | #include <hdf5.h>**
**      |          ^~~~~~~~**
**compilation terminated.**
**make: *** [makefile:244: build/src/Checkpoint/Checkpoint.o] Error 1**

This is to show you what is going :

**younes@user-HP-Pro-3500-Series:~$ dpkg -l | grep hdf5**
**ii  hdf5-helpers                               1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - Helper tools**
**ii  hdf5-tools                                 1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - Runtime tools**
**ii  libhdf5-103:amd64                          1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - runtime files - serial version**
**ii  libhdf5-cpp-103:amd64                      1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - C++ libraries**
**ii  libhdf5-dev                                1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - development files - serial version**
**ii  libhdf5-mpi-dev                            1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - development files - default MPI version**
**ii  libhdf5-mpich-103:amd64                    1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - runtime files - MPICH2 version**
**ii  libhdf5-mpich-dev                          1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - development files - MPICH version**
**ii  libhdf5-openmpi-103:amd64                  1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - runtime files - OpenMPI version**
**ii  libhdf5-openmpi-dev                        1.10.4+repack-11ubuntu1               amd64        Hierarchical Data Format 5 (HDF5) - development files - OpenMPI version**
**ii  python3-h5py                               2.10.0-2build2                        amd64        general-purpose Python interface to hdf5 (Python 3)**

any hint is highly appreciated
Kinds…


#2

Have a look at where libhdf5-dev is installed! hdf5.h should sit in the include subfolder. Do you use a command to load these packages, e.g., module load ...? That should update the INCLUDE path for the compiler and the LIBPATH for the linker. Are you using CMake or Autotools?

G.