grimbough / Rhdf5lib

Distribution of the HDF5 library in an R package
https://bioconductor.org/packages/Rhdf5lib/
6 stars 14 forks source link

Having an codesign issue with a version 1.20.0 M1Mac binary #50

Closed akhst7 closed 1 year ago

akhst7 commented 1 year ago

Hi,

In the Issue #45, the solution for installing Rhd5lib was to install the arm64 version 1.19.2. Updated version,1.20.0 is having a codesign issue as follows;

library(Rhdf5lib)
Error: package or namespace load failed for ‘Rhdf5lib’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so':
  dlopen(/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so, 0x0006): tried: '/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so' (code signature in <3B12270F-642C-3784-BE84-5436EED4FFE6> '/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so' (no such file), '/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so' (code signature in <3B12270F-642C-3784-BE84-5436EED4FFE6> '/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so' not valid for use in process: library load disallowed by system policy)

A strage thing is that the version,1.20.0 has a valid code signature;

codesign -d -vvv --verify  /Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so
/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so: valid on disk
/Volumes/Document/4.x_Rlib/Rhdf5lib/libs/Rhdf5lib.so: satisfies its Designated Requirement

If the M1Mac binary of thenewer version, 1.20.0 or greater is available, please let me know the download link.

grimbough commented 1 year ago

The M1 Mac binary for 1.20.0 is listed on https://bioconductor.org/packages/release/bioc/html/Rhdf5lib.html.

A direct link is: https://bioconductor.org/packages/release/bioc/bin/macosx/big-sur-arm64/contrib/4.2/Rhdf5lib_1.20.0.tgz

akhst7 commented 1 year ago

Thanks.