Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gavin5325 opened this issue Feb 26, 2025 · 0 comments
Open

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

gavin5325 opened this issue Feb 26, 2025 · 0 comments

Comments

@gavin5325
Copy link

gavin5325 commented Feb 26, 2025

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.

@gavin5325 gavin5325 changed the title Cannot install hdf5r - libmpifort.so.12 missing Cannot install hdf5r - libmpifort.so.12 can't be located Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant