Skip to content

Cannot install hdf5r - libmpifort.so.12 can't be located #236

@gavin5325

Description

@gavin5325

Context: I'm on a linux-based HPC. The version of R I'm using is 4.4.0 and the version of RStudio I'm using is 2024-12.0-467

I need to install hdf5r as it is a dependency for velocyto.R. Since I'm on HPC, I've loaded the HDF5 (and other relevant modules) as such on RStudio:

source('/usr/share/Modules/init/r.R') module('load', 'hdf5/1.12.2') module('load', 'intel-mpi/2021.7.1') module('load', 'boost/1.80.0') install.packages('withr')

However, every time I install hdf5r either using install.packages("hdf5r") or install_local, it gives me the following error:

`** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘hdf5r’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/myid/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-hdf5r/00new/hdf5r/libs/hdf5r.so':
libmpi.so.12: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed

  • removing ‘/home/myid/R/x86_64-pc-linux-gnu-library/4.4/hdf5r’
    Warning in install.packages :
    installation of package ‘/pathto/hdf5r’ had non-zero exit status`

I believe libmpi.so.12 is found in the intel-mpi module. So what is going on? How should I fix this?

P.S. For obvious privacy reasons, I've replaced some parts of the paths above. They are bolded for clarity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions