Installing 9.2.0 with HDF5

210 views
Skip to first unread message

Curro Trigo

unread,
Mar 21, 2021, 8:41:32 AM3/21/21
to deal.II User Group
Hello:

I'm trying to install deal II 9.2.0 on Ubuntu 20.04.2 LTS realease. And I succeded.

But if I try to install it with HDF5 activated I get errors like those shown below in the cmake process (while executing 'cmake -DDEAL_II_DIR=/home/curro/dealii-9.2.0/ ../'):

-- Include /home/curro/dealii-9.2.0/cmake/configure/configure_hdf5.cmake
-- HDF5_INCLUDE_DIR not found! Call:
--     FIND_PATH(HDF5_INCLUDE_DIR hdf5.h HINTS PATH_SUFFIXES hdf5 hdf5/include include/hdf5 include)
-- HDF5_LIBRARY not found! Call:
--     FIND_LIBRARY(HDF5_LIBRARY NAMES hdf5 HINTS PATH_SUFFIXES hdf5/lib lib lib64 lib)
-- HDF5_HL_LIBRARY not found! Call:
--     FIND_LIBRARY(HDF5_HL_LIBRARY NAMES hdf5_hl HINTS PATH_SUFFIXES lib lib64 lib)
-- HDF5_PUBCONF not found! Call:
--     FIND_FILE(HDF5_PUBCONF NAMES H5pubconf.h H5pubconf-64.h HINTS HDF5_INCLUDE_DIR-NOTFOUND PATH_SUFFIXES hdf5 hdf5/include include/hdf5 include)
--   HDF5_LIBRARIES: *** Required variable "HDF5_HL_LIBRARY" set to NOTFOUND ***
--   HDF5_INCLUDE_DIRS: *** Required variable "HDF5_INCLUDE_DIR" set to NOTFOUND ***
--   HDF5_USER_INCLUDE_DIRS: *** Required variable "HDF5_INCLUDE_DIR" set to NOTFOUND ***
-- Could NOT find HDF5
-- DEAL_II_WITH_HDF5 has unmet external dependencies.

I've downloaded from 'https://www.hdfgroup.org/' the file 'hdf5-1.12.0-linux-centos7-x86_64-shared-production.tar.gz'. And I have expanded it. Also, I've set the environment variable LD_LIBRARY_PATH to the folder where I've expanded it. With no success.

Any help will be welcome. Thanks a lot in advance.

Curro Trigo

Wolfgang Bangerth

unread,
Mar 21, 2021, 8:51:25 AM3/21/21
to dea...@googlegroups.com
On 3/21/21 1:41 PM, Curro Trigo wrote:
>
> I've downloaded from 'https://www.hdfgroup.org/' the file
> 'hdf5-1.12.0-linux-centos7-x86_64-shared-production.tar.gz'. And I have
> expanded it. Also, I've set the environment variable LD_LIBRARY_PATH to the
> folder where I've expanded it. With no success.

You also need files such as hdf5.h, i.e., header files and not just the libraries.

I would suspect that there is an ubuntu package for hdf5. It would probably be
easier if you installed that through the regular package manager, than do it
by hand.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Francisco Trigo

unread,
Mar 21, 2021, 1:50:56 PM3/21/21
to dea...@googlegroups.com

Hello again,

 

The problem is when I type 'apt-cache search hdf5' I get 103 packages (attached to this e-mail) in Ubuntu related to hdf5. Which ones do I have to select?

 

I've selected these four packages:

 

  hdf5-helpers 

  libhdf5-103

  libhdf5-cpp-103

  libhdf5-dev

 

with the same result:

 

-- Include /home/curro/dealii-9.2.0/cmake/configure/configure_hdf5.cmake

-- HDF5_INCLUDE_DIR not found! Call:

--     FIND_PATH(HDF5_INCLUDE_DIR hdf5.h HINTS /usr/lib/x86_64-linux-gnu/hdf5 PATH_SUFFIXES hdf5 hdf5/include include/hdf5 include)

-- HDF5_LIBRARY not found! Call:

--     FIND_LIBRARY(HDF5_LIBRARY NAMES hdf5 HINTS /usr/lib/x86_64-linux-gnu/hdf5 PATH_SUFFIXES hdf5/lib lib lib64 lib)

-- HDF5_HL_LIBRARY not found! Call:

--     FIND_LIBRARY(HDF5_HL_LIBRARY NAMES hdf5_hl HINTS /usr/lib/x86_64-linux-gnu/hdf5 PATH_SUFFIXES lib lib64 lib)

-- HDF5_PUBCONF not found! Call:

--     FIND_FILE(HDF5_PUBCONF NAMES H5pubconf.h H5pubconf-64.h HINTS HDF5_INCLUDE_DIR-NOTFOUND /usr/lib/x86_64-linux-gnu/hdf5 PATH_SUFFIXES hdf5 hdf5/include include/hdf5 include)

--   HDF5_LIBRARIES: *** Required variable "HDF5_HL_LIBRARY" set to NOTFOUND ***

--   HDF5_INCLUDE_DIRS: *** Required variable "HDF5_INCLUDE_DIR" set to NOTFOUND ***

--   HDF5_USER_INCLUDE_DIRS: *** Required variable "HDF5_INCLUDE_DIR" set to NOTFOUND ***

-- Could NOT find HDF5

-- DEAL_II_WITH_HDF5 has unmet external dependencies.

 

Any suggestion?

 

Thank you!

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/1db3deab-8dcd-40ec-b4e2-9b2b1c255bf4n%40googlegroups.com.

hdf5_ubuntu_packages.txt

simon...@gmail.com

unread,
Mar 22, 2021, 12:35:37 PM3/22/21
to deal.II User Group
Hi,
Can you try this:

cmake -DDEAL_II_WITH_HDF5=ON -DHDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial ..


Because, as far as I can tell, the "hint" that is currently in configure_hdf5.cmake isn't good enough.

Best,
Simon

Francisco Trigo

unread,
Mar 23, 2021, 5:18:58 AM3/23/21
to dea...@googlegroups.com

Hello Simon;

 

Your advice has worked fine, I had already tried what you suggested but I missed the final “/serial” of the path. With the complete path finally HDF5 has been detected successfully.

 

Definitively configure_hdf5.cmake is not good enough.

 

For the sake of completion, I installed these Ubuntu packages: ‘libhdf5-103’ and ‘libhdf5-dev’, but ‘hdf5-helpers’ and ‘libhdf5-cpp-103’ also installed automatically.

 

Thank you very much indeed, Simon.

 

Curro

Reply all
Reply to author
Forward
0 new messages