Open DawnEve opened 3 months ago
I find the answer today, though I don't know why this works:
1. check the path of HDF5:
$ which h5cc
~/.local/bin/h5cc
2. Run under R in shell:
export HDF5_DIR=/home/wangjl/.local/
export LD_LIBRARY_PATH=$HDF5_DIR/lib:$LD_LIBRARY_PATH
export CFLAGS="-I$HDF5_DIR/include"
export LDFLAGS="-L$HDF5_DIR/lib"
Rscript -e 'if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager"); BiocManager::install("rhdf5")'
3. check in shell R or Rstudio:
R
> library("rhdf5")
> packageVersion("rhdf5") #‘2.46.1’
When I try to install this package like this, an error occures:
BiocManager::install("rhdf5")
My environment is CentOS7.9, R 4.3.2, Rsudio.