Executable h5c++ is not in the expected location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdf5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have installed libhdf5-mpi-dev (version 1.10.6+repack-5), which depends on libhdf5-openmpi-dev (version 1.10.6+repack-5). Package libhdf5-openmpi-dev currently seems to use update-alternatives to create a symlink from /usr/bin/h5pcc to the installed HDF5 C compiler wrapper at /usr/bin/
Because I'm using Ubuntu to compile HDF5 C++ programs, I've worked around the issue by creating a similar symlink manually using command:
update-alternatives --install /usr/local/
Creating the symlink using the above command has also fixed building HDF5 C++ programs using CMake. I think libhdf5-openmpi-dev should be updated to automatically symlink h5c++ just as it currently symlinks h5pcc.
I have used Ubuntu 21.10 (Impish Indri) to reproduce this issue. Please note that I have used Ubuntu via the official Docker image, but I'm sure this issue is reproducible on a proper installation as well.