Closed lijinbio closed 1 year ago
This message is coming from the HDF5 librariy's own configure script, which I suspect means this version of the library is incompatible with M1 mac for the moment.
I'd suggest continuing using the Intel version of R and running with Rosetta. As far as I understand there's very little performance difference between the two, and you'll also be able to use the binary version of Bioconductor packages which should make installation much quicker and easier.
This issue has not been solved as of today. HDF5 lib is complied in M1/arm64 Mac by brew as follows;
brew list hdf5
/opt/homebrew/Cellar/hdf5/1.12.2/bin/gif2h5
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h52gif
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5c++
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5cc
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5clear
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5copy
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5debug
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5diff
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5dump
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5fc
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5format_convert
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5import
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5jam
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5ls
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5mkgrp
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5perf_serial
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5redeploy
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5repack
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5repart
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5stat
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5unjam
/opt/homebrew/Cellar/hdf5/1.12.2/bin/h5watch
/opt/homebrew/Cellar/hdf5/1.12.2/include/ (119 files)
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5_cpp.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5_fortran.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5_hl.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5_hl_cpp.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/libhdf5hl_fortran.200.dylib
/opt/homebrew/Cellar/hdf5/1.12.2/lib/ (13 other files)
/opt/homebrew/Cellar/hdf5/1.12.2/share/hdf5/libhdf5.settings
/opt/homebrew/Cellar/hdf5/1.12.2/share/hdf5_examples/ (108 files)
and a path to HDF5 lib is set;
echo $HDF5_DIR
/opt/homebrew/opt/hdf5
but I still get a configure error as follows;
configure: error: in `/private/var/folders/sl/253njlzx5797z3x9nlhrs79m0000gn/T/RtmpJBlBhW/R.INSTALL90fb5668ab60/Rhdf5lib/src/hdf5':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [_config] Error 77
make: *** [build-hdf5] Error 2
This is mostlikely due to the fact that hdf5 in Rhdf5lib is not written for arm64e but x86_64 ? Is it possible to compile Rhdf5lib with the preinstall hdf5 lib rather than Rhdf5lib's install script tries to install hdf5 lib that comes with it ?
Rhdf5lib is such an important dependency for dozens of Bioc packages, and without it I can't install them. I would really appreciate if you could look into this ?
Thanks.
@grimbough I have the same question ....
Can you use the pre-built M1 binary now provided by Bioconductor? The are only available for Bioconductor 3.16 for now (https://bioconductor.org/packages/devel/bioc/html/Rhdf5lib.html) so you might need to force installation if you're not using the developmental version of Bioconductor. I think you should be able to do that with:
install.packages('https://bioconductor.org/packages/devel/bioc/bin/macosx/big-sur-arm64/contrib/4.2/Rhdf5lib_1.19.2.tgz', repos = NULL)
A binary version is working.
Thanks.
Hi all,
I tried to install Rhdf5lib on M1 Mac OS X, but failed with the below error message. Could you please help suggest how could I install Rhdf5lib on M1? My Mac OS version is 12.3.1. Thanks.