HelenaLC / CATALYST

Cytometry dATa anALYsis Tools
67 stars 30 forks source link

Mac ARM64 binary not available #345

Closed EmD0kusha closed 8 months ago

EmD0kusha commented 1 year ago

I am to install but not run the library on ARM64 chip Mac, a fix would be greatly appreciated

HelenaLC commented 1 year ago

This is nothing I can fix, unfortunately, but in the hands of Bioc (I think)... Have you tried BiocManager::install("CATALYST", force = TRUE, type = "source")? This usually works in all cases, assuming you meet all required system dependencies. (FYI: I have an ARM64 Mac as well and it works for me.)

kbruton commented 1 year ago

Has anyone found a solution to running the library on an arm64 Mac?

Like EmD0kusha, I am able to install CATALYST while running RStudio for the x86_64 platform, but can't load the library.

Error: package or namespace load failed for ‘CATALYST’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/png/libs/png.so': dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/png/libs/png.so, 0x0006): tried: '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/png/libs/png.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.2/Resources/library/png/libs/png.so' (no such file), '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/png/libs/png.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

david-priest commented 1 year ago

I can confirm that I was able to compile from source and run on an M1 macbook pro. There may be a few steps required to get gcc working properly, but it's definitely possible. ChatGPT is probably helpful to work through the issues.