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

Rnetica on Macbook pro M1 (silicon arm64) ? #18

Open
Simon-h20 opened this issue Apr 25, 2022 · 5 comments
Open

Rnetica on Macbook pro M1 (silicon arm64) ? #18

Simon-h20 opened this issue Apr 25, 2022 · 5 comments

Comments

@Simon-h20
Copy link

Simon-h20 commented Apr 25, 2022

Hi @ralmond ,

Apologies in advance if this is not the appropriate place for this question / issue.

I downloaded the pkgRNetica_0.8-4.tgzand installed using Rstudio's pkg installer. When I load the Rnetica library in Rstudio I receive the error below suggesting an 'incompatible architecture'.

Wondering if there is something wrong with my configuration or if it is not possible to run Rnetica on M1 Macbooks?

Specs:
Macbook pro M1, MacOS Monterey 12.3.1
R 4.1.2 silicon arm64 build
I run Netica 6.09 32 bit version - using crossover

library(RNetica)
Loading required package: CPTtools
Error: package or namespace load failed for ‘RNetica’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/RNetica/libs/RNetica.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/RNetica/libs/RNetica.so, 0x0006): tried: '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/RNetica/libs/RNetica.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

Thank you!

@ralmond
Copy link
Owner

ralmond commented Apr 28, 2022

Thanks for letting me know. My mac (and I think the ones on r-universe.dev) is x86_64, so I don't have that problem.
Unfortunately, I think it is an upstream issue, that is I need a version of libnetica.a or netica.dylib which is arm64e ready. It was on my list to contact Brent@norsys about bringing the Mac and Windows shared libraries up to date, so I will pass this upstream. Unfortunately, I don't how long that will take.
I will get back to you if I get word from Brent, as I probably will need somebody to test or arm64e for me.

@Simon-h20
Copy link
Author

Hi @ralmond , okay thanks for letting me know 👍

@Simon-h20
Copy link
Author

Hi @ralmond , wondering if you have had any updates on this?
Thanks,
Simon

@ralmond
Copy link
Owner

ralmond commented Dec 27, 2022 via email

@Simon-h20
Copy link
Author

Okay, will do, thank you
Simon

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

2 participants