‘hdf5.mod’ for reading at (1): No such file or directory

I was trying to build VASP - Atomistic Simulation Code with hdf5 support. I have properly installed hdf5 as mentioned in documentation. But showing an error as shown below while building vasp. I am on Ubuntu.20.x

Cannot open module file ‘hdf5.mod’ for reading at (1): No such file or directory

In which documentation? The VASP documentation (Where is that?) or the HDF5 documentation? G.

There are multiple ways to install HDF5. Please describe what you did.